Exemplo n.º 1
0
        public IEnumerable <Chicken> GetChickens()
        {
            var repo     = new ChickenRepository();
            var chickens = repo.GetAll();

            return(chickens);
        }
        public ActionResult <IEnumerable <Chicken> > GetAllChickens()
        {
            var repo = new ChickenRepository();

            return(repo.GetAll());
        }