public async Task <List <Accounts> > GetChecking(Project1Context c, string userId) { var _repo = new AccountsRepo(c); List <Accounts> all = await _repo.GetAll(userId); return(all.Where(a => a.Type.Id == _repo.GetTypeId("Checking")).ToList()); }
// GET: Accounts public async Task <IActionResult> Index() { return(View(await _arepo.GetAll(UID()))); }