Пример #1
0
 public Order(Customer customer, Item item, int quantity)
 {
     Customer = customer;
     Item = item;
     Quantity = quantity;
 }
Пример #2
0
 public void AddItem(Item item)
 {
     if (!_items.Contains(item))
     {
         _items.Add(item);
     }
 }