Пример #1
0
        public ActionResult Save()
        {
            DictModel dict = new DictModel();

            dict = ObjectUtil.Eval(dict, Request.Params, "", "");
            if (string.IsNullOrEmpty(dict.id))
            {
                dict.id = dict.createPk().ToString();
            }
            JsResultObject result = BaseZdBiz.SaveOrUpdate(dict, "字典");

            return(JsonText(result, JsonRequestBehavior.AllowGet));
        }