コード例 #1
0
ファイル: BankSystem.cs プロジェクト: Sourav159/Bank-System
        //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);
        }