Exemplo n.º 1
0
 public IActionResult GetExaminationById(int id)
 {
     try
     {
         Examination examination = _examinationService.GetExaminationById(id);
         return(Ok(ExaminationMapper.Examination_To_ExaminationDTO(examination)));
     }
     catch (DatabaseException e)
     {
         return(StatusCode(500, e.Message));
     }
     catch (NotFoundException e)
     {
         return(NotFound(e.Message));
     }
 }