//Get Courses BY Organization public JsonResult GetCourseByOrganizationId(int id) { if (id > 0) { var dataList = _examManager.GetAllCourses(id); return(Json(dataList.Select(c => new { Id = c.Id, Name = c.Name }))); } return(null); }