/// <summary> /// prints transaction history to console /// </summary> /// <returns>success/failure</returns> public bool viewTransactionHistory() { List <List <string> > transactions = _bankAccountBiz.getTransactionHistory(); if (transactions != null) { foreach (List <string> transaction in transactions) //loop through transactions, printing information { foreach (string trans in transaction) { Console.Write("{0} | ", trans); } Console.Write("\n"); } return(true); } return(false); }
public ActionResult <List <List <string> > > Transaction(int userId) { _userBiz.setUser(userId); return(_bankAccountBiz.getTransactionHistory()); }