public bool InserirCidade(Cidade cidade)
        {
            cadastroPessoaRepository = new CadastroPessoaRepository();

            if (cidade != null)
            {
                cadastroPessoaRepository.InserirCidade(cidade);
                return(true);
            }
            return(false);
        }
        public bool InserirEstado(Estado estado)
        {
            cadastroPessoaRepository = new CadastroPessoaRepository();

            if (estado != null)
            {
                cadastroPessoaRepository.InserirEstado(estado);
                return(true);
            }
            return(false);
        }
        public bool InserirPessoa(Pessoa pessoa)
        {
            cadastroPessoaRepository = new CadastroPessoaRepository();

            if (pessoa != null)
            {
                cadastroPessoaRepository.InserirPessoa(pessoa);
                return(true);
            }
            return(false);
        }
 public bool ExcluirCidade(int id)
 {
     cadastroPessoaRepository = new CadastroPessoaRepository();
     return(cadastroPessoaRepository.ExcluirCidade(id));
 }
 public bool AlterarCidade(Cidade cidade)
 {
     cadastroPessoaRepository = new CadastroPessoaRepository();
     return(cadastroPessoaRepository.AlterarCidade(cidade));
 }
 public Cidade ObterCidade(int id)
 {
     cadastroPessoaRepository = new CadastroPessoaRepository();
     return(cadastroPessoaRepository.ObterCidadeId(id));
 }
 public IEnumerable <Cidade> ListarCidade()
 {
     cadastroPessoaRepository = new CadastroPessoaRepository();
     return(cadastroPessoaRepository.ListarCidade());
 }
 public bool ExcluirEstado(int id)
 {
     cadastroPessoaRepository = new CadastroPessoaRepository();
     return(cadastroPessoaRepository.ExcluirEsatado(id));
 }
 public bool AlterarEstado(Estado estado)
 {
     cadastroPessoaRepository = new CadastroPessoaRepository();
     return(cadastroPessoaRepository.AlterarEstado(estado));
 }
 public Estado ObterEstado(int id)
 {
     cadastroPessoaRepository = new CadastroPessoaRepository();
     return(cadastroPessoaRepository.ObterEstadoId(id));
 }
 public IEnumerable <Estado> ListarEstado()
 {
     cadastroPessoaRepository = new CadastroPessoaRepository();
     return(cadastroPessoaRepository.ListarEstado());
 }
 public bool AlterarPessoa(Pessoa pessoa)
 {
     cadastroPessoaRepository = new CadastroPessoaRepository();
     return(cadastroPessoaRepository.AlterarPessoa(pessoa));
 }
 public Pessoa ObterPessoa(int id)
 {
     cadastroPessoaRepository = new CadastroPessoaRepository();
     return(cadastroPessoaRepository.ObterPessoaId(id));
 }
 public IEnumerable <Pessoa> ListarPessoa()
 {
     cadastroPessoaRepository = new CadastroPessoaRepository();
     return(cadastroPessoaRepository.ListarPessoa());
 }