public ActionResult <List <CBO> > GetCboByProfissional([FromHeader] string ibge, [FromRoute] int id) { try { ibge = _config.GetConnectionString(Connection.GetConnection(ibge)); List <CBO> lista = _profissionalRepository.GetCboProfissional(ibge, id); return(Ok(lista)); } catch (Exception ex) { var response = TrataErro.GetResponse(ex.Message, true); return(StatusCode((int)HttpStatusCode.InternalServerError, response)); } }