public ActionResult <List <Cidadao> > GetAll([FromHeader] string ibge)//[FromBody] ParametersCidadao model, { try { ibge = _config.GetConnectionString(Connection.GetConnection(ibge)); List <Cidadao> lista = _cidadaoRepository.GetAll(ibge, string.Empty); return(Ok(lista)); } catch (Exception ex) { var response = TrataErro.GetResponse(ex.Message, true); return(StatusCode((int)HttpStatusCode.InternalServerError, response)); } }