public async Task <IActionResult> Delete(string id) { try { await _identityService.DeleteUser(id); } catch (Exception e) { return(RedirectToAction("AccessDenied", "Account")); } return(RedirectToAction("List", "Account")); }
//Delete User public ActionResult DeleteUser(string id) { _identityService.DeleteUser(id); return(RedirectToAction("Users")); }