public int GetAmountOfIceUsedInRecipe(Inventory inventory) { UserInterface.IceRecipePrompt(); int icePerPitcher; while (!int.TryParse(Console.ReadLine(), out icePerPitcher) || icePerPitcher > inventory.IceCount || icePerPitcher <= 0) { UserInterface.InvalidIceRecipeEntry(); } return(icePerPitcher); }