public List<BankTransaction> GetTransactions(BankTransaction bankTransaction) { if(bankTransaction != null) transactions.Add(bankTransaction); if (transactions.Count == 2 ) { return transactions; } return null; }
public List <BankTransaction> GetTransactions(BankTransaction bankTransaction) { if (bankTransaction != null) { transactions.Add(bankTransaction); } if (transactions.Count == 2) { return(transactions); } return(null); }