Esempio n. 1
0
        public void AddItem(ProductRef product, double quantity)
        {
            var item = new TrolleyItem
            {
                Product  = product,
                Quantity = quantity,
            };

            Items.Add(item);
        }
Esempio n. 2
0
        public void AddItem(ProductRef product, double quantity, bool isSpecial = false)
        {
            var item = new TrolleyItem
            {
                Product  = product,
                Quantity = quantity,
            };

            Items.Add(item);
        }