/// <summary>
 /// Retrieves a list of all inventory items
 /// </summary>
 /// <returns>A list of inventory items</returns>
 public List<InventoryItem> GetItemList()
 {
     using (var client = new InventoryServiceClient())
     {
         client.Open();
         return new List<InventoryItem>(client.GetItemList());
     }
 }
Esempio n. 2
0
 /// <summary>
 /// Retrieves a list of all inventory items
 /// </summary>
 /// <returns>A list of inventory items</returns>
 public List <InventoryItem> GetItemList()
 {
     using (var client = new InventoryServiceClient())
     {
         client.Open();
         return(new List <InventoryItem>(client.GetItemList()));
     }
 }