Esempio n. 1
0
        public Account GetPagedStatementByAccountNumber(int accNo, int page)
        {
            Account a = AMgr.GetAccountByAccountNumber(accNo);

            if (a is null)
            {
                throw new KeyNotFoundException(
                          "no account with this account number exists");
            }

            List <Transaction> tHistory = TMgr.GetTransactionsForAccount(accNo,
                                                                         TransactionPageSize, page);

            a.Transactions = tHistory;

            return(a);
        }
Esempio n. 2
0
 public Account GetAccountByAccountNumber(int accNo)
 {
     return(AMgr.GetAccountByAccountNumber(accNo));
 }