private void DisplayCoffee() { Coffee[] coffeeList = repository.ReadAll(); for (int i = 0; i <= coffeeList.Length - 1; i++) { if (coffeeList[i] == null) { } else { View.DisplayCoffee(coffeeList[i]); } } }