Esempio n. 1
0
        //Get Batch BY Course
        public JsonResult GetBatchByCourseId(int id)
        {
            if (id > 0)
            {
                var dataList = _trainerManager.GetBatchByCourseId(id);
                return(Json(dataList.Select(c => new { Id = c.Id, Name = c.Name })));
            }

            return(null);
        }