public ActionResult <RetornoView <Pessoa> > GetAll()
        {
            var resultado = new RetornoView <Pessoa>()
            {
                dados = _pessoaRepositorio.GetAll()
            };

            return(resultado);
        }
Exemple #2
0
        public ActionResult Index()
        {
            var pessoas = _pessoaRepositorio.GetAll();

            return(View());
        }
Exemple #3
0
 public IEnumerable <Pessoa> GetAll()
 {
     return(repositorio.GetAll());
 }
 public IEnumerable <Pessoa> GetAll()
 {
     return(_pessoaRep.GetAll());
 }