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

            return(null);
        }