public async Task <IActionResult> Index(int id) { HistoricoAtendimentoViewModel historicoAtendimentoView = new HistoricoAtendimentoViewModel(); var animal = await _animalService.ObterAnimalPorIdAsync(id); var historico = await _atendimentoService.ObterHistoricoAtendimentoDoAnimalAsync(id); historicoAtendimentoView.NomeAnimal = animal.Nome; historicoAtendimentoView.Historico = historico; return(View(historicoAtendimentoView)); }