예제 #1
0
        public async Task <Page <Vehicle> > GetByStatus(SearchVehicleStatus vehicleStatus, [FromQuery] PagingOptions pagingOptions)
        {
            pagingOptions.Offset = pagingOptions.Offset ?? _defaultPagingOptions.Offset;
            pagingOptions.Limit  = pagingOptions.Limit ?? _defaultPagingOptions.Limit;

            return(await _vehiclesService.GetByStatus(vehicleStatus, pagingOptions));
        }