예제 #1
0
        }//end of GetTransactionDetailsAsList

        //method will return onlt transactions that were created as a credit
        public List <TransactionRecord> GetCreditTransactionsAsList(int accNum)
        {
            DALTransactionManager    dalTransMngr     = new DALTransactionManager();
            List <TransactionRecord> transDetailsList = dalTransMngr.GetTransactionDetailsAsList();

            try
            {
                // This line will onyl include transactions that match credit transaction type
                transDetailsList = transDetailsList.Where(Transaction => Transaction.TransactionType == TransactionType.credit && Transaction.AccountNumber == accNum).ToList();
            }
            catch (Exception ex)
            {
                throw ex;
            }
            return(transDetailsList);
        }//end of GetCreditTransactionsAsList
예제 #2
0
        }//end of CreateTransfer

        //Method will return all the transactions for a ccount number passed in
        public List <TransactionRecord> GetTransactionDetailsAsList(int accNum)
        {
            DALTransactionManager    dalTransMngr     = new DALTransactionManager();
            List <TransactionRecord> transDetailsList = dalTransMngr.GetTransactionDetailsAsList();

            try
            {
                // This line will only include transactions that match the account number selected
                transDetailsList = transDetailsList.Where(Transaction => Transaction.AccountNumber == accNum).ToList();
            }
            catch (Exception ex)
            {
                throw ex;
            }
            return(transDetailsList);
        }//end of GetTransactionDetailsAsList