private void ListOfAllAccounts() { Console.Clear(); Console.WriteLine("Wszystkie konta:"); foreach (Account account in _accountsManager.GetAllAccounts()) { _printer.Print(account); } Console.ReadKey(); }
//Przypadek 7 - Wypisanie wszystkich kont w banku private void GetAllAccounts() { Console.Clear(); Console.WriteLine("Lista wszystkich kont w banku: "); foreach (Account account in _accountsManager.GetAllAccounts()) { _printer.Print(account); } Console.ReadKey(); }