Exemple #1
0
        // RETURNS the quantity of the specified item
        public int GetQuantity(int itemId)
        {
            int quantity = 0;

            if (OrderLines.ContainsKey(itemId))
            {
                quantity = orderLines[itemId].quantity;
            }

            return(quantity);
        }