Exemple #1
0
        public async Task <GetAutoPartsResponse> GetAutoParts(int pageSize, AutoPartsFilter filter)
        {
            var request = new GetAutoPartsRequest
            {
                SearchText        = filter.SearchText ?? string.Empty,
                AvailableOnly     = filter.AvailableOnly,
                CarModificationId = filter.CarModificationId,
                CountryId         = filter.CountryId,
                ManufacturerId    = filter.ManufacturerId,
                PageNumber        = filter.PageNumber,
                PageSize          = pageSize,
                SortBy            = filter.Sorting,
                SubCatalogId      = filter.SubCatalogId,
                SupplierId        = filter.SupplierId
            };

            return(await autoPartServiceClient.GetAutoPartsAsync(request));
        }