public static void LaunchCustomerPortal() { string input = ""; bool validInput = false; do { Console.Clear(); Console.WriteLine(Currentuser.getName().ToUpper() + "\t\t\t\t\t\t User ID : " + Currentuser.UserID); Console.WriteLine("********************************************************************************\n"); Console.WriteLine("What would you like to do ?\n"); Console.WriteLine("1. View Account Balance \n"); Console.WriteLine("2. Deposit Funds \n"); Console.WriteLine("3. Withdraw Cash \n"); Console.WriteLine("4. Transfer Funds between your accounts \n"); Console.WriteLine("5. Request an Account Statement \n"); Console.WriteLine("6. Add a new account \n"); Console.WriteLine("7. Logout \n\n"); Console.Write("Please choose one of the options above : "); input = Console.ReadLine(); int inputValue = 0; Int32.TryParse(input, out inputValue); if (inputValue > 0 && inputValue <= 7) { validInput = true; } } while (!validInput); if (input.Trim() == "1") { ViewAccountBalance(); } else if (input.Trim() == "2") { DepositFunds(); } else if (input.Trim() == "3") { WithdrawCash(); } else if (input.Trim() == "4") { TransferBetweenAccounts(); } else if (input.Trim() == "5") { RequestStatement(); } else if (input.Trim() == "6") { AddNewAccount(); } else if (input.Trim() == "7") { DisplayMainMenu(); } }
public String getFirstCustomer() { return(firstCustomer.getName()); }