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)); }
public Task <List <AccountDeposit> > GetAccountDepositsByUserId(int id) { var result = _accountDepositService.GetAccountDepositsByUserId(id); return(result); }