Пример #1
0
 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);
 }
Пример #2
0
 public Result UpdateModelTypes([FromBody] ModelTypeUpdateDTO dto)
 {
     return(base.Success(base.modelService.UpdateModelTypes(dto)));
 }