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