/// <summary>
 /// Updates the tracking status of the orders.
 /// </summary>
 /// <param name="orders">A list of orders to be updated for tracking.</param>
 public void UpdateMarketplaceTracking(IEnumerable<Contracts.MarketplaceOrderFulfillment> orders)
 {
     if (orders.Count(o => o.Marketplace == Contracts.EMarketplace.Amazon) > 0)
     {
         var marketplaceOrderFulfillment = ConvertToStream(orders.Where(o => o.Marketplace == Contracts.EMarketplace.Amazon));
         var submitFeedController = new SubmitFeedController(_AmazonClient, _MerchantId, _MarketplaceId);
         var streamResponse = submitFeedController.SubmitFeedAndGetResponse(marketplaceOrderFulfillment, AmazonFeedType.OrderFulfillment);
         var responseException = ConvertResultToOrderFulfillmentException(streamResponse);
         if (responseException != null)
             throw responseException;
     }
 }
 /// <summary>
 /// Updates the marketplace's inventory so that items will have the specified quantity available.
 /// </summary>
 /// <param name="items">Collection of objects that represent the item and the quantity the inventory should be updated to.</param>
 /// <exception cref="AmazonUpdateInventoryExcpetion"></exception>
 public void UpdateMarketplaceInventory(IEnumerable<Contracts.MarketplaceInventoryUpdateItem> items)
 {
     if (items.Count() > 0)
     {
         var inventoryUpdateContent = ConvertToStream(items);
         var submitFeedController = new SubmitFeedController(_AmazonClient, _MerchantId, _MarketplaceId);
         var streamResponse = submitFeedController.SubmitFeedAndGetResponse(inventoryUpdateContent, AmazonFeedType.InventoryUpdate);
         var responseException = ConvertResultToUpdateInventoryException(streamResponse);
         if(responseException != null)
             throw responseException;
     }
 }