public void LoadInstructorNote() { var instructorNoteFile = Directory.GetFile("InstructorNotes.md"); if (instructorNoteFile.Exists) { InstructorNote = InstructorNote.Load(instructorNoteFile, this); } }
public void LoadInstructorNote(CourseLoadingContext context, int slideIndex) { var instructorNoteFile = Directory.GetFile("InstructorNotes.md"); if (instructorNoteFile.Exists) { InstructorNote = InstructorNote.Load(context, instructorNoteFile, this, slideIndex); } }
public ActionResult InstructorNote(string courseId, string unitName) { InstructorNote instructorNote = courseManager.GetCourse(courseId).FindInstructorNote(unitName); if (instructorNote == null) { return(HttpNotFound("no instructor note for this unit")); } return(View(instructorNote)); }
public IntructorNoteModel(string courseId, InstructorNote note) { CourseId = courseId; Note = note; }
public IntructorNoteModel(string courseId, InstructorNote note, string noteEditUrl) { CourseId = courseId; Note = note; NoteEditUrl = noteEditUrl; }