public JsonResult GetStudentCourses(int DepartmentId) { List <Course> courseList = entrollCourseManager.GetStudentCourses(DepartmentId); return(Json(courseList, JsonRequestBehavior.AllowGet)); }