_ViewStart.cshtml 221 B

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