public ActionResult LessonsList(int id) { LessonsDal gld = new LessonsDal(); List<Lesson> list = gld.GetLessons(id); return View(list); }
public ActionResult ChaptersList() { LessonsDal gld = new LessonsDal(); List<Chapter> list = gld.GetChapters(); return View(list); }
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); }