public void GetCoffeeMachineDrinks(int id)
        {
            var Drinks = coffeeMachineService.GetDrinks(id).ToList();

            Drinks.ForEach(x =>
                           System.Console.WriteLine("№{0}a{1} {2}", id, x.Id, x.DrinkName)
                           );
        }
Exemple #2
0
        public void GetIngredientsByCoffeeMachineId(int id)
        {
            var drinks = coffeeMachineService.GetDrinks(id).ToList();

            drinks.ForEach(x => {
                System.Console.WriteLine("{0}", x.DrinkName);
                GetIngredients(x.Id);
            }
                           );
        }