示例#1
0
        public async Task <IActionResult> AllDeposits()
        {
            var user = await _userManager.GetUserAsync(HttpContext.User);

            var userId = user.Id;

            var accountDeposits = await _accountDepositService.GetAccountDepositsByUserId(userId);

            var deposits = await _depositService.Get();

            ViewBag.deposits = deposits;
            return(View(accountDeposits));
        }
示例#2
0
        public Task <List <AccountDeposit> > GetAccountDepositsByUserId(int id)
        {
            var result = _accountDepositService.GetAccountDepositsByUserId(id);

            return(result);
        }