public JsonResult GetCourseModelByCourseId(int courseId) { CourseAssignManager aCourseAssignManager = new CourseAssignManager(); CourseModel aCourseModel = new CourseModel(); aCourseModel = aCourseAssignManager.GetCourseModelByCourseId(courseId); return(Json(aCourseModel, JsonRequestBehavior.AllowGet)); }