public async Task <IActionResult> Index() { try { List <Consulta> listaConsultas = await _consultaService.BuscarConsultasAsync(); return(View(listaConsultas)); } catch (Exception ex) { throw ex; } }
public async Task <IActionResult> Index() { try { List <Consulta> listaConsultas = await _consultaService.BuscarConsultasAsync(); return(View(listaConsultas)); } catch (Exception ex) { throw ex; } }