Ejemplo n.º 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);
 }
Ejemplo n.º 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);
 }