Beispiel #1
0
        public ActionResult GetBatchesByClassId(string selectedClasses, string selectedBranch)
        {
            var studentCount = _studentService.GetStudentsByClassBranch(selectedClasses, selectedBranch).Select(x => new { x.ClassId, x.ClassName }).Count();
            var batches      = _batchService.GetBatchesByClassIds(selectedClasses).Select(x => new { x.BatchId, x.BatchName, x.ClassName });
            var result       = new
            {
                studentParentCount = studentCount,
                batches            = batches
            };

            return(Json(result, JsonRequestBehavior.AllowGet));
        }