Refactoring - split data, logic and model layers; custom network exception
This commit is contained in:
15
StudentHouseDashboard/WebApp/Pages/Logout.cshtml.cs
Normal file
15
StudentHouseDashboard/WebApp/Pages/Logout.cshtml.cs
Normal file
@@ -0,0 +1,15 @@
|
||||
using Microsoft.AspNetCore.Authentication;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using Microsoft.AspNetCore.Mvc.RazorPages;
|
||||
|
||||
namespace WebApp.Pages
|
||||
{
|
||||
public class LogoutModel : PageModel
|
||||
{
|
||||
public IActionResult OnGet()
|
||||
{
|
||||
HttpContext.SignOutAsync();
|
||||
return RedirectToPage("Index");
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user