public async Task <IActionResult> GetAccount(int id) { Account account = await _repo.GetUserAccount(id); IEnumerable <CardForDashboardDto> cards = await _repo.GetAccountCards(account.Id); AccountForDashboardDto accountToReturn = _mapper.Map <AccountForDashboardDto>(account); accountToReturn.Cards = cards.ToList(); return(Ok(accountToReturn)); }