コード例 #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);
 }
コード例 #2
0
ファイル: OffersApi.cs プロジェクト: grbbod/drconnect-jungo
 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);
 }