Exemple #1
0
        public async Task <IActionResult> OnPostDel()
        {
            HttpRequests req = new HttpRequests();
            await req.DeleteUserAsync(BaseController.GetToken());

            BaseController.SetUserAndToken(new User()
            {
                Role = "nothing", Id = 0
            }, "");
            return(RedirectToPage("/Index"));
        }