public string Edit(JObject json) { SetDefaultValue(json); SYS_FunctionTree model = JsonToObject <SYS_FunctionTree>(json); return(DPBase.Update(model) ? "修改成功!" : "修改失败"); }
public string EditButtonGroup(JObject json) { SYS_ButtonGroup bGroup = (SYS_ButtonGroup)(JsonConvert.DeserializeObject(json.ToString(), typeof(SYS_ButtonGroup))); DPBase.Update(bGroup); return("保存成功!"); }
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) ? "新增成功!" : "新增失败"); }
public string Edit(JObject json) { SYS_Button model = JsonToObject <SYS_Button>(json); return(DPBase.Update(model) ? "新增成功!" : "新增失败"); }
string IExcuteModel <T> .UpdateModel(T t) { DPBase.Update(t); return("保存成功!"); }
public string Edit(JObject json) { SYS_SystemRole model = JsonToObject <SYS_SystemRole>(json); return(DPBase.Update(model) ? "新增成功!" : "新增失败"); }