// GET /carsclient/cars
        public async Task<PaginatedDto<Car>> Get(PaginatedRequestCommand cmd) {

            var cars = await _carsClient.GetCars(cmd);
            return cars;
        }
Пример #2
0
 // GET /api/cars
 public PaginatedDto<Car> Get(PaginatedRequestCommand cmd)
 {
     return _carsCtx.GetAll(cmd.Page, cmd.Take).ToPaginatedDto();
 }