Beispiel #1
0
 public void RollbackTransaction(Transaction transaction)
 {
     try
     {
         transaction.Rollback();
     }
     catch (InvalidOperationException exception)
     {
         BankSystem.ErrorMessage(exception);
     }
 }
Beispiel #2
0
 public void ExecuteTransaction(Transaction transaction)
 {
     _transactions.Add(transaction);
     try
     {
         transaction.Execute();
     }
     catch (InvalidOperationException exception)
     {
         BankSystem.ErrorMessage(exception);
     }
 }