public ActionResult DeleteAssignment(int id)
        {
            var assignment= _gradeBookRepository.GetAssignment(id);
            var classId = assignment.ClassId;
               var  course = _teacherRepository.GetCourseById(assignment.ClassId);
            var gradebook = new GradeBook();
            gradebook.Course = course;
            _gradeBookRepository.DeleteAssignment(id);
            gradebook.AssignmentList = _gradeBookRepository.GetListOfAssignmentsById(classId);

            return View("GradeBookDisplay", gradebook);
        }
        //classId
        public GradeBook Get(int id)
        {
            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;
        }
        public ActionResult EditAssignment(AssignmentView assignmentView)
        {
            _gradeBookRepository.EditAssignment(assignmentView.NewAssignment);
            int classId = 0;
            var gradeBook = new GradeBook();
            var course = new Course();
            classId=_gradeBookRepository.GetAssignment(assignmentView.NewAssignment.AssignmentId).ClassId;

            course = _teacherRepository.GetCourseById(classId);
            gradeBook.Course = course;
            gradeBook.AssignmentList = _gradeBookRepository.GetListOfAssignmentsById(classId);

            return View("GradeBookDisplay", gradeBook);
        }
        //takes a classId
        //should i comment this out now that I am using ApiController with angular?
        public ActionResult GradeBookDisplay(int id)
        {
            var gradeBook = new GradeBook();

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