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

            if (SYSPolicy.DeleteByID(ID) > 0)
            {
                msg = "ok";
            }
            return(Content(msg));
        }
        public ActionResult EditSave(SYSPolicy 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 Save(SYSPolicy condition)
        {
            if (string.IsNullOrWhiteSpace(condition.Title))
            {
                return(Content("标题不能为空!!"));
            }
            if (string.IsNullOrWhiteSpace(condition.Contents))
            {
                return(Content("内容不能为空!!"));
            }
            string msg = "出错了";

            if (condition.InsertAndReturnIdentity() > 0)
            {
                msg = "ok";
            }
            return(Content(msg));
        }
        public ActionResult Index()
        {
            List <SYSPolicy> model = SYSPolicy.GetNavAdvs();

            return(View(model));
        }
        public ActionResult EditIndex(int ID)
        {
            SYSPolicy agentkow = SYSPolicy.GetEntityByID(ID);

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