Exemple #1
0
        public void LoadInstructorNote()
        {
            var instructorNoteFile = Directory.GetFile("InstructorNotes.md");

            if (instructorNoteFile.Exists)
            {
                InstructorNote = InstructorNote.Load(instructorNoteFile, this);
            }
        }
Exemple #2
0
        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));
        }
Exemple #4
0
 public IntructorNoteModel(string courseId, InstructorNote note)
 {
     CourseId = courseId;
     Note     = note;
 }
Exemple #5
0
 public IntructorNoteModel(string courseId, InstructorNote note, string noteEditUrl)
 {
     CourseId    = courseId;
     Note        = note;
     NoteEditUrl = noteEditUrl;
 }
		public IntructorNoteModel(string courseId, InstructorNote note)
		{
			CourseId = courseId;
			Note = note;
		}