public object UpdateModelTypes(ModelTypeUpdateDTO dto) { base.Db.Updateable <DmeModelType>() .UpdateColumns(mt => new DmeModelType { Name = dto.NewName, LastTime = DateUtil.CurrentTimeMillis }) .Where(mt2 => mt2.SysCode == dto.SysCode).ExecuteCommand(); return(true); }
public Result UpdateModelTypes([FromBody] ModelTypeUpdateDTO dto) { return(base.Success(base.modelService.UpdateModelTypes(dto))); }