public ActionResult NewAssignCourses(int course, int department)
        {
            JoinCourseDepartmentClass join = new JoinCourseDepartmentClass(course, department);

            join.Save();
            return(RedirectToAction("Assigncourses"));
        }
        public ActionResult ShowDepartment(int id)
        {
            Dictionary <string, object> allInfo    = new Dictionary <string, object>();
            List <DepartmentClass>      department = DepartmentClass.FindById(id);
            List <StudentClass>         students   = JoinStudentDepartmentClass.GetStudentsByDepartmentId(id);
            List <CourseClass>          courses    = JoinCourseDepartmentClass.GetCoursesByDepartmentId(id);

            allInfo.Add("students", students);
            allInfo.Add("courses", courses);
            allInfo.Add("department", department);
            return(View("ShowDepartment", allInfo));
        }