_ViewStart.cshtml 212 B

123456789101112
  1. @using Microsoft.AspNetCore.Identity
  2. @{
  3. if (User.Identity.IsAuthenticated)
  4. {
  5. Layout = "~/Views/Shared/_Layout.cshtml";
  6. }
  7. else
  8. {
  9. Layout = "~/Views/Shared/_Sub.cshtml";
  10. }
  11. }