public ActionResult DoSaveConfig() { ConfigModel config = new ConfigModel(); config = WebUtil.Eval<ConfigModel>(config, "", ""); JsResultObject re = BaseZdBiz.Update(config,"全局配置"); return JsonText(re, JsonRequestBehavior.AllowGet); }
public static ConfigModel GetCurrConfig() { ConfigModel config= BaseZdBiz.Load<ConfigModel>("default"); if (config == null) { config = new ConfigModel(); config.id = "default"; } return config; }