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) ); }
public void GetIngredientsByCoffeeMachineId(int id) { var drinks = coffeeMachineService.GetDrinks(id).ToList(); drinks.ForEach(x => { System.Console.WriteLine("{0}", x.DrinkName); GetIngredients(x.Id); } ); }