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)); }
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))); } }