public void Withdraw(Account account, decimal amount, string operationName = null) { Operation operation = new Operation(operationName, -amount); account.AddOperation(operation); }
public void Deposit(Account account, decimal amount, string operationName = null) { Operation operation = new Operation(operationName, amount); account.AddOperation(operation); }