Пример #1
0
 private static void CloseAccount()
 {
     Console.WriteLine("Enter the account id to close: ");
     int id = Convert.ToInt32(Console.ReadLine());
     _bank.ClosedAccount(new ClosedAccountParameters
     {
         Id = id - 1,
         AccountCloser = NotifyAccountCreated
     });
     // Close
 }