Exemplo n.º 1
0
        //SELECT *
        public ActionResult getAllNews()
        {
            List <newsVM> news = _news.getAllNews();

            return(View(news));


            //ViewBag.news = _news.getAllNews();
            //ViewBag.newsTypes = _types.getAllnewsTypes();
            //return View();
        }
        public ActionResult GetAllNews()
        {
            CourseBLL       cbll   = new CourseBLL();
            List <CourseVM> mylist = cbll.getAllCourses();
            SelectList      li     = new SelectList(mylist, "course_id", "course_name");

            ViewBag.li = li;
            List <newsVM> newsVm = newsBll.getAllNews();

            return(View(newsVm));
        }