示例#1
0
        public void AddItem(ProductRef product, double quantity)
        {
            var item = new TrolleyItem
            {
                Product  = product,
                Quantity = quantity,
            };

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

            Items.Add(item);
        }