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