Example #1
0
        public ActionResult Del(int ID)
        {
            string msg = "出错了!!";

            if (SYSAgentKnow.DeleteByID(ID) > 0)
            {
                msg = "ok";
            }
            return(Content(msg));
        }
Example #2
0
        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));
        }
Example #3
0
        public ActionResult Index()
        {
            List <SYSAgentKnow> model = SYSAgentKnow.GetNavAdvs();

            return(View(model));
        }
Example #4
0
        public ActionResult EditIndex(int ID)
        {
            SYSAgentKnow agentkow = SYSAgentKnow.GetEntityByID(ID);

            return(View(agentkow));
        }
Example #5
0
        //
        // GET: /AgentKnow/

        public ActionResult Index()
        {
            ViewData["user"]         = C_UserVM.GetVMByID(CurrentUser.ID);
            ViewData["SYSAgentKnow"] = SYSAgentKnow.GetNavAdvsMobile();
            return(View());
        }