public ActionResult Del(int ID) { string msg = "出错了!!"; if (SYSAgentKnow.DeleteByID(ID) > 0) { msg = "ok"; } return(Content(msg)); }
public ActionResult EditSave(SYSAgentKnow condition) { if (string.IsNullOrWhiteSpace(condition.Title)) { return(Content("标题不能为空!!")); } if (string.IsNullOrWhiteSpace(condition.Contents)) { return(Content("内容不能为空!!")); } string msg = "出错了"; if (condition.UpdateByID() > 0) { msg = "ok"; } return(Content(msg)); }
public ActionResult Index() { List <SYSAgentKnow> model = SYSAgentKnow.GetNavAdvs(); return(View(model)); }
public ActionResult EditIndex(int ID) { SYSAgentKnow agentkow = SYSAgentKnow.GetEntityByID(ID); return(View(agentkow)); }
// // GET: /AgentKnow/ public ActionResult Index() { ViewData["user"] = C_UserVM.GetVMByID(CurrentUser.ID); ViewData["SYSAgentKnow"] = SYSAgentKnow.GetNavAdvsMobile(); return(View()); }