Exemple #1
0
 public IndexViewModel()
 {
     this.context          = new BankAppDataContext();
     this.Account_Queries  = new AccountQueriesHandler(context);
     this.Customer_Queries = new CustomerQueriesHandler(context);
     this.TotalCustomers   = Customer_Queries.GetCustomersList().Count;
     this.TotalAccounts    = Account_Queries.GetAllAccounts().Count;
     this.TotalBalance     = Account_Queries.CalculateTotalBalance();
 }
Exemple #2
0
 public ActionResult <IEnumerable <Domain.Account> > Get()
 {
     return(accountQueriesHandler.GetAllAccounts());
 }