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