public ActionResult DeleteManager(int id) { if (!user.IsAdmin()) { return(View("Error")); } if (managerDal.DeleteADManager(id)) { TempData["stt"] = true; TempData["stt"] = "Delete successful"; } else { TempData["stt"] = false; TempData["stt"] = "Delete failed"; } return(RedirectToAction("ManagerList")); }