示例#1
0
 public ActionResult <List <Exame> > GetHistoricoResultadoExameByPaciente([FromHeader] string ibge, [FromRoute] int id_exame)
 {
     try
     {
         ibge = _config.GetConnectionString(Connection.GetConnection(ibge));
         List <Exame> lista = _repository.GetHistoricoResultadoExameByPaciente(ibge, id_exame);
         return(Ok(lista));
     }
     catch (Exception ex)
     {
         var response = TrataErro.GetResponse(ex.Message, true);
         return(StatusCode((int)HttpStatusCode.InternalServerError, response));
     }
 }