public void GetCoffeeMachineIngredients(int id, bool IsDefault)
        {
            var CoffeeMachines = coffeeMachineService.GetIngredients(id).ToList();

            /*CoffeeMachines.ForEach(x =>
             *  // System.Console.WriteLine("{0} - {1}", x.IngredientName, IsDefault ? x.MaxVolume : x.Volume)
             * );*/
        }
Пример #2
0
        public void GetIngredients(int id)
        {
            var drinks = drinkService.GetIngredients(id).ToList();

            drinks.ForEach(x =>
                           System.Console.WriteLine("- {0} - {1}", coffeeMachineService.GetIngredients(x.Id), x.Volume)
                           );
        }