示例#1
0
        public List<BankTransaction> GetTransactions(BankTransaction bankTransaction)
        {
             if(bankTransaction != null)
            transactions.Add(bankTransaction);

            if (transactions.Count == 2 )
            {
                return transactions;
            }

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

            if (transactions.Count == 2)
            {
                return(transactions);
            }

            return(null);
        }