Exemple #1
0
 public async Task <IActionResult> GetConsultaAsync(int id)
 {
     try
     {
         return(Ok(await service.GetConsultaAsync(id)));
     }
     catch (ConsultaException ex)
     {
         return(BadRequest(ex));
     }
 }