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