public ActionResult Index() { ViewBag.Perm = GetPermission(); BLL.SysConfigBLL bll = new BLL.SysConfigBLL(); App.Models.Sys.siteconfig model = bll.loadConfig(Utils.GetXmlMapPath(ContextKeys.FILE_SITE_XML_CONFING)); return(View(model)); }
public JsonResult Edit(App.Models.Sys.siteconfig model) { BLL.SysConfigBLL bll = new BLL.SysConfigBLL(); try { bll.saveConifg(model, Utils.GetXmlMapPath(ContextKeys.FILE_SITE_XML_CONFING)); return(Json(JsonHandler.CreateMessage(1, Suggestion.EditSucceed))); } catch { return(Json(JsonHandler.CreateMessage(0, Suggestion.EditFail))); } }