public ActionResult StudentClassSummary(int studentId, int classId)
        {
            //var gradingStats = SchoolLocator.GradingStatisticService.GetStudentClassGradeStats(mp.Id, classId, studentId);
            // var gradingPerMp = ClassLogic.GetGradingSummary(SchoolLocator, classId, mp.SchoolYearRef, null, studentId, false);
            //return Json(GradingStudentClassSummaryViewData.Create(gradingStats.FirstOrDefault(), mp, gradingPerMp));
            ClassGradingBoxesViewData classGarding = null;//PrepareClassGradingBoxes(classId);
            var mp = SchoolLocator.MarkingPeriodService.GetMarkingPeriodByDate(Context.NowSchoolYearTime.Date, true);

            return(Json(GradingStudentClassSummaryViewData.Create(mp, GetGradedItems(null, null, classId), classGarding)));
        }
        private async Task <ClassGradingBoxesViewData> PrepareClassGradingBoxes(int classId)
        {
            var syId                           = GetCurrentSchoolYearId();
            var gradingPeriods                 = SchoolLocator.GradingPeriodService.GetGradingPeriodsDetailsByClassId(classId);
            var currentGradingPeriod           = CurrentGradingPeriodFromList(gradingPeriods, Context.NowSchoolYearTime.Date);
            TeacherClassGrading gradingSummary = null;

            if (currentGradingPeriod != null)
            {
                gradingSummary = await SchoolLocator.GradingStatisticService.GetClassGradingSummary(classId, currentGradingPeriod);
            }
            return(ClassGradingBoxesViewData.Create(gradingPeriods, gradingSummary, Context.Claims));
        }