/// <summary>
 /// Retrieves the modifier groups associated with the specified item
 /// </summary>
 /// <param name="context">The store id, station id, and cashier id the information should be restricted to.</param>
 /// <param name="itemNumber">The item number to retrieve info for</param>
 /// <returns>A list of ModifierGroups for the item number</returns>
 public List<ModifierGroup> GetModiferGroupsForItem(Context context, string itemNumber)
 {
     using (var client = new InventoryServiceClient())
     {
         client.Open();
         return new List<ModifierGroup>(client.GetModifierGroupsForItem(context, itemNumber));
     }
 }
Exemplo n.º 2
0
 /// <summary>
 /// Retrieves the modifier groups associated with the specified item
 /// </summary>
 /// <param name="context">The store id, station id, and cashier id the information should be restricted to.</param>
 /// <param name="itemNumber">The item number to retrieve info for</param>
 /// <returns>A list of ModifierGroups for the item number</returns>
 public List <ModifierGroup> GetModiferGroupsForItem(Context context, string itemNumber)
 {
     using (var client = new InventoryServiceClient())
     {
         client.Open();
         return(new List <ModifierGroup>(client.GetModifierGroupsForItem(context, itemNumber)));
     }
 }