public ActionResult DeleteOccuptaionName(string id) { IOccupationBLL bLL = new OccupationBLL(); if (bLL.DeleteOccupationNameById(Convert.ToInt32(id))) { TempData["info"] = "已删除"; return(Redirect("/Settings/OccupationSettings")); } else { TempData["error"] = "删除失败"; return(Redirect(Request.UrlReferrer.AbsoluteUri)); } }