コード例 #1
0
        public ActionResult Index()
        {
            Apps.BLL.SysConfigBLL bll   = new Apps.BLL.SysConfigBLL();
            SysConfigModel        model = bll.loadConfig(Utils.GetXmlMapPath(ContextKeys.FILE_SITE_XML_CONFING));

            return(View(model));
        }
コード例 #2
0
 public JsonResult Edit(SysConfigModel model)
 {
     Apps.BLL.SysConfigBLL bll = new Apps.BLL.SysConfigBLL();
     try
     {
         bll.saveConifg(model, Utils.GetXmlMapPath(ContextKeys.FILE_SITE_XML_CONFING));
         return(Json(JsonHandler.CreateMessage(1, Resource.EditSucceed)));
     }
     catch
     {
         return(Json(JsonHandler.CreateMessage(0, Resource.EditFail)));
     }
 }