Beispiel #1
0
 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);
 }
Beispiel #2
0
 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);
 }