Пример #1
0
        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());
        }
Пример #2
0
 // GET: Accounts
 public async Task <IActionResult> Index()
 {
     return(View(await _arepo.GetAll(UID())));
 }