public async Task <IActionResult> ClientProfile(int id) { Client client = await _context.GetClientById(id); ClientViewModel viewModel = new ClientViewModel { Id = id, Name = client.Name, Surname = client.Surname, Adress = client.Adress, PassportNum = client.PassportNum, PassportSeries = client.PassportSeries, Email = client.Email, Deposits = await _context.GetUserDeposits(id), Credits = await _context.GetUserCredits(id) }; return(View(viewModel)); }