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