public static void UserOptions() { #region User Input and call Business Logic CommonOptions(); //Call Business Logic VendingMachine_BL objVending = new VendingMachine_BL(enteredCoin); objVending.CheckValidCoin(); Console.ReadLine(); #endregion }
public void UserOptions_AddCoin() { #region User Input and call Business Logic CommonOptions(); //Call Business Logic while (true) { objVending.CheckValidCoin(enteredCoin); Console.WriteLine($"Do you want to enter more coins : Y/N"); string moreCoin = Console.ReadLine(); if (moreCoin.Equals("N")) { break; } CommonOptions(); } #endregion }