public JsonResult GetCourseById(int id) { List <EnrollCourse> courses = manager.GetCourse(id); return(Json(courses, JsonRequestBehavior.AllowGet)); }