//Number of Lemon used to make lemonade public static int LemonUsedToMakeLemonade(Recipe recipe, Inventory inventory) { Console.WriteLine("How many lemon would you use to make lemonade?"); recipe.numberOfLemon = int.Parse(Console.ReadLine()); if (recipe.numberOfLemon <= inventory.CountLemon()) { return(recipe.numberOfLemon); } else { Console.WriteLine("Invalid input."); return(LemonUsedToMakeLemonade(recipe, inventory)); } }