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