Exemplo n.º 1
0
 public ActionResult <List <Procedimento> > GetProcedimentosByCompetencia022019([FromHeader] string ibge)
 {
     try
     {
         ibge = _config.GetConnectionString(Connection.GetConnection(ibge));
         List <Procedimento> itens = _repository.GetProcedimentosByCompetencia022019(ibge);
         return(Ok(itens));
     }
     catch (Exception ex)
     {
         var response = TrataErro.GetResponse(ex.Message, true);
         return(StatusCode((int)HttpStatusCode.InternalServerError, response));
     }
 }