Add namespace for SignedOut.cshtml.cs (#266)

Addresses #205
This commit is contained in:
Jass Bagga 2018-01-29 14:03:14 -08:00 committed by GitHub
parent f15637e328
commit e8816350ef
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 13 additions and 7 deletions

View File

@ -5,16 +5,19 @@ using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.RazorPages;
public class SignedOutModel : PageModel
namespace Company.WebApplication1.Pages.Account
{
public IActionResult OnGet()
public class SignedOutModel : PageModel
{
if (User.Identity.IsAuthenticated)
public IActionResult OnGet()
{
// Redirect to home page if the user is authenticated.
return RedirectToPage("/Index");
}
if (User.Identity.IsAuthenticated)
{
// Redirect to home page if the user is authenticated.
return RedirectToPage("/Index");
}
return Page();
return Page();
}
}
}

View File

@ -5,5 +5,8 @@
@*#if (IndividualLocalAuth)
@using Company.WebApplication1.Data
#endif*@
@*#if (OrganizationalAuth || IndividualB2CAuth)
@using Company.WebApplication1.Pages.Account
#endif*@
@namespace Company.WebApplication1.Pages
@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers