예제 #1
0
        public ActionResult LessonsList(int id)
        {
            LessonsDal gld = new LessonsDal();
            List<Lesson> list = gld.GetLessons(id);

            return View(list);
        }
예제 #2
0
        public ActionResult ChaptersList()
        {
            LessonsDal gld = new LessonsDal();
            List<Chapter> list = gld.GetChapters();

            return View(list);
        }
예제 #3
0
        public ActionResult Lesson(int id)
        {
            LessonsDal dal = new LessonsDal();
            Lesson lesson = dal.Retrieve(id);
            LessonPageFactory lpFactory = new LessonPageFactory();
            Lesson builtLesson = lpFactory.BuildPages(lesson);

            return View(builtLesson);
        }