public ActionResult DeleteUser(DeleteUserViewModel model) { if (User.Identity.IsAuthenticated && User.IsInRole("Admin")) { if (!ModelState.IsValid) { return(View(model)); } SiteUserManager.DeleteSiteUser(model.Id, Server); return(RedirectToAction("Users", "Admin")); } return(RedirectToAction("Index", "Home")); }