public JsonResult GetCourseByCourseID(int departmentId) { var course = manage.CourseLoad(); var courseName = course.Where(a => a.DepartmentId == departmentId).ToList(); return(Json(courseName, JsonRequestBehavior.AllowGet)); }