Esempio n. 1
0
 public ListModel <Machinery> List([FromBody] ListQuery listQuery)
 {
     return(new ListModel <Machinery>
     {
         List = _repository.List(listQuery),
         Count = _repository.Count(listQuery)
     });
 }
Esempio n. 2
0
 public ListModel <Machinery> Machineries([FromBody] ListQueryModel <PositionListQueryModel> listQuery)
 {
     return(new ListModel <Machinery>
     {
         List = _machineryRepository.List(listQuery, listQuery?.Model),
         Count = _machineryRepository.Count(listQuery, listQuery?.Model)
     });
 }