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()); }