public IActionResult OnPostDeleteUser()
        {
            IUser user = UserCatalogue.CurrentUser;

            user.Delete();
            UserCatalogue.Logout();
            return(Redirect("~/"));
        }
Exemplo n.º 2
0
 public IActionResult OnGet()
 {
     UserCatalogue.Logout();
     return(RedirectToPage("/Index"));
 }