public async Task <IActionResult> Index() { return(View(_mapper.Map <IEnumerable <ExameViewModel> >(await _exameRepository.ObterTodos()))); }
public IEnumerable <Exame> ObterTodos() { return(_exameRepository.ObterTodos()); }
private async Task <ConsultaViewModel> PopularExames(ConsultaViewModel consulta) { consulta.Exames = _mapper.Map <IEnumerable <ExameViewModel> >(await _exameRepository.ObterTodos()); return(consulta); }