public HttpStatusCode Post(GradeBookView.StudentGrade gbUpdate)
        {
            var gbRepo = new GradeBookRepository();

            gbRepo.EditGradebook(gbUpdate);
            return(HttpStatusCode.OK);
        }
        public GradeBook Get(int id) //classId
        {
            var gradeBook            = new GradeBook();
            var _gradeBookRepository = new GradeBookRepository();
            var _teacherRepository   = new TeacherRepository();
            var _rosterRepository    = new RosterRepository();

            gradeBook.StudentsEnrolled    = _rosterRepository.GetStudentsEnrolledIn(id);
            gradeBook.Course              = _teacherRepository.GetCourseById(id);
            gradeBook.AssignmentList      = _gradeBookRepository.GetListOfAssignmentsById(id);
            gradeBook.StudentPerformances = _gradeBookRepository.GetListOfStudentPerformanceById(gradeBook.StudentsEnrolled);
            return(gradeBook);
        }