public void AddMenu(TimeOfDay timeOfDay, Dish dishType, bool allowMultipleOrders) { MenuItem newMenuItem = new MenuItem(timeOfDay, dishType, allowMultipleOrders); menuItems.Add(newMenuItem); }
public MenuItem(TimeOfDay timeOfDay, Dish dishType, bool allowMultipleOrders) { this.timeOfDay = timeOfDay; this.dishType = dishType; this.allowMultipleOrders = allowMultipleOrders; }