public async Task <ActionResult> Delete(string userId) { var account = await _userManagerService.GetUserById(userId); if (account != null) { IdentityResult result = await _userManagerService.DeleteAccount(account); _commitProvider.Save(); } return(RedirectToAction("UserList")); }