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); }
public Account GetAccountByAccountNumber(int accNo) { return(AMgr.GetAccountByAccountNumber(accNo)); }