private async Task SupplyRecentInventoryStatusAsync(Offer offer) { if (offer == null || offer.ProductOffers == null || offer.ProductOffers.ProductOffer == null || offer.ProductOffers.ProductOffer.Length == 0) { return; } var prods = offer.ProductOffers.ProductOffer.Select(prodOffer => prodOffer.Product).ToList(); var catApi = new CatalogApi(); await catApi.SupplyRecentInventoryStatusAsync(prods).ConfigureAwait(false); }
private async Task SupplyRecentInventoryStatusAsync(Offer offer) { if (offer == null || offer.ProductOffers == null || offer.ProductOffers.ProductOffer == null || offer.ProductOffers.ProductOffer.Length == 0) return; var prods = offer.ProductOffers.ProductOffer.Select(prodOffer => prodOffer.Product).ToList(); var catApi = new CatalogApi(); await catApi.SupplyRecentInventoryStatusAsync(prods).ConfigureAwait(false); }