public static CustomerTransaction getCustomerAndTransactions(int?id) { BasicCreditDbContext db = new BasicCreditDbContext(); CustomerTransaction custTransactions = new CustomerTransaction(); custTransactions.customer = getCustomer(id); var transactions = db.Transactions.Where(s => s.CustID == custTransactions.customer.Id); custTransactions.transactions = transactions.ToList(); return(custTransactions); }
public static CustomerTransaction getCustomerAndTransactions(int?id) { CustomerTransaction CustomerTransaction = BasicCredit.getCustomerAndTransactions(id); return(CustomerTransaction); }