public async Task <IActionResult> UpdateConsultaAsync([FromBody] Consulta consulta) { try { return(Ok(await service.UpdateConsultaAsync(consulta))); } catch (ConsultaException ex) { return(BadRequest(ex)); } }