public async Task <ActionResult> UserDelete(Guid siteId, Guid userId, int returnPageNumber = 1) { var selectedSite = await _siteManager.GetSiteForDataOperations(siteId); if (selectedSite != null) { var user = await _userManager.Fetch(selectedSite.Id, userId); var result = await _userManager.DeleteAsync((SiteUser)user); if (result.Succeeded) { this.AlertSuccess(string.Format(_sr["user account for {0} was successfully deleted."], user.DisplayName), true); } } return(RedirectToAction("Index", "UserAdmin", new { siteId = selectedSite.Id, pageNumber = returnPageNumber })); }