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