예제 #1
0
 public async Task <IActionResult> Delete(string id)
 {
     try
     {
         await _identityService.DeleteUser(id);
     }
     catch (Exception e)
     {
         return(RedirectToAction("AccessDenied", "Account"));
     }
     return(RedirectToAction("List", "Account"));
 }
예제 #2
0
        //Delete User

        public ActionResult DeleteUser(string id)
        {
            _identityService.DeleteUser(id);
            return(RedirectToAction("Users"));
        }