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