Exemple #1
0
        //Private method to find the account from the accounts list
        private static Account FindAccount(Bank bank)
        {
            Console.Write("Please enter the account name: ");
            string name = Console.ReadLine();

            Account acc = bank.GetAccount(name);

            if (acc == null)
            {
                Console.WriteLine("Account not found!");
            }

            return(acc);
        }