示例#1
0
        public string Edit(JObject json)
        {
            SetDefaultValue(json);
            SYS_FunctionTree model = JsonToObject <SYS_FunctionTree>(json);

            return(DPBase.Update(model) ? "修改成功!" : "修改失败");
        }
示例#2
0
        public string EditButtonGroup(JObject json)
        {
            SYS_ButtonGroup bGroup = (SYS_ButtonGroup)(JsonConvert.DeserializeObject(json.ToString(), typeof(SYS_ButtonGroup)));

            DPBase.Update(bGroup);
            return("保存成功!");
        }
示例#3
0
        public string Edit(JObject json)
        {
            SYS_Account model = JsonToObject <SYS_Account>(json);

            model.ACC_Password = model.ACC_Password == "" ? "" : ANTPower.Security.Encrypt.StrToMd5Encrypt(model.ACC_Password);
            return(DPBase.Update(model) ? "新增成功!" : "新增失败");
        }
示例#4
0
        public string Edit(JObject json)
        {
            SYS_Button model = JsonToObject <SYS_Button>(json);

            return(DPBase.Update(model) ? "新增成功!" : "新增失败");
        }
示例#5
0
 string IExcuteModel <T> .UpdateModel(T t)
 {
     DPBase.Update(t);
     return("保存成功!");
 }
示例#6
0
        public string Edit(JObject json)
        {
            SYS_SystemRole model = JsonToObject <SYS_SystemRole>(json);

            return(DPBase.Update(model) ? "新增成功!" : "新增失败");
        }