public static List <EC_News> GetAllNews(int take)
        {
            NewsDAL newsDal = new NewsDAL();

            return(newsDal.GetAllNews().Take(take).ToList());
        }
Exemple #2
0
        public ActionResult GetAllNews()
        {
            IEnumerable <News> allNews = DAL.GetAllNews().ToList();

            return(View(allNews));
        }