public void Update(UpdateDutyInput input) { input.Validate(); this.DbContext.Update <Sys_Duty>(a => a.Id == input.Id, a => new Sys_Duty() { Name = input.Name, DepartmentId = input.DepartmentId, SortCode = input.SortCode, }); }
public ActionResult Update(UpdateDutyInput input) { this.CreateService <IDutyAppService>().Update(input); return(this.UpdateSuccessMsg()); }
public ActionResult Update(UpdateDutyInput input) { this.CreateService <IEntityAppService>().UpdateFromDto <Sys_Duty, UpdateDutyInput>(input); return(this.UpdateSuccessMsg()); }