Esempio n. 1
0
 public ActionResult <ProcedimentoAvulso> GetProcEnfermagemById([FromHeader] string ibge, [FromRoute] int id)
 {
     try
     {
         ibge = _config.GetConnectionString(Connection.GetConnection(ibge));
         var lista = _repository.GetProcEnfermagemById(ibge, id);
         return(Ok(lista));
     }
     catch (Exception ex)
     {
         var response = TrataErro.GetResponse(ex.Message, true);
         return(StatusCode((int)HttpStatusCode.InternalServerError, response));
     }
 }