Exemplo n.º 1
0
        public ActionResult GetCategsCourses()
        {
            CoursesCategsVM ccvm = new CoursesCategsVM();

            List <CategoryVM> categs = categBll.getAllCategs();

            ccvm.categs = categs;

            List <CourseVM> courses = courseBll.getAllCourses();

            ccvm.courses = courses;



            return(View(ccvm));
        }
        // GET: UserArea/AboutUsPage
        public ActionResult Index()
        {
            CourseBLL       cbll   = new CourseBLL();
            List <CourseVM> mylist = cbll.getAllCourses();
            SelectList      li     = new SelectList(mylist, "course_id", "course_name");

            ViewBag.li = li;
            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));
        }
        //SELECT *
        public ActionResult getAllCourses()
        {
            List <CourseVM> courses = courseBll.getAllCourses();

            return(View(courses));
        }