/// <summary> /// Prints coffees' list, and mark the coffee with red, /// if its not available with current balance or ingridients /// </summary> private void ShowCoffees() { var coffees = _coffeeDL.GetAllCoffees(); var store = _storeDL.GetStore(); foreach (var coffee in coffees) { Console.Write($"{coffee.Id} ==> "); if (coffee.Water <= store.Water && coffee.Sugar <= store.Sugar && coffee.Coffees <= store.Coffees && balance >= coffee.Price) { Console.WriteLine($"{coffee.Name} - {coffee.Price} dram"); } else { Console.ForegroundColor = ConsoleColor.Red; Console.WriteLine($"{coffee.Name} - {coffee.Price} dram"); Console.ForegroundColor = ConsoleColor.White; } } }