Пример #1
0
        public async Task <Page <Vehicle> > GetByCustomerId(int customerId, [FromQuery] SearchVehicleStatus vehicleStatus, [FromQuery] PagingOptions pagingOptions)
        {
            pagingOptions.Offset = pagingOptions.Offset ?? _defaultPagingOptions.Offset;
            pagingOptions.Limit  = pagingOptions.Limit ?? _defaultPagingOptions.Limit;

            return(await _vehiclesService.GetByCustomerId(customerId, vehicleStatus, pagingOptions));
        }