Beispiel #1
0
 public int GetStudentGradeLevel(int studentId)
 {
     return(StudentSchoolYearStorage.GetAll(studentId).Select(x => x.GradeLevelRef).First());
 }
Beispiel #2
0
 public bool GradeLevelExists(int gradeLevelId, int studentId)
 {
     return(StudentSchoolYearStorage.Exists(new[] { gradeLevelId }, studentId));
 }
Beispiel #3
0
 public bool IsStudentEnrolled(int studentId, int schoolYearId)
 {
     return(StudentSchoolYearStorage.GetData().Any(x => x.Value.StudentRef == studentId &&
                                                   x.Value.SchoolYearRef == schoolYearId &&
                                                   x.Value.IsEnrolled));
 }
Beispiel #4
0
 public IList <StudentSchoolYear> GetStudentAssignments()
 {
     return(StudentSchoolYearStorage.GetAll());
 }
Beispiel #5
0
 public IList <StudentSchoolYear> GetStudentAssignments(int?schoolYearId, StudentEnrollmentStatusEnum?enrollmentStatus)
 {
     return(StudentSchoolYearStorage.GetList(schoolYearId, enrollmentStatus));
 }
Beispiel #6
0
 public IList <StudentSchoolYear> GetStudentAssignments(int personId)
 {
     return(StudentSchoolYearStorage.GetAll(personId));
 }
Beispiel #7
0
 public void AssignStudent(IList <StudentSchoolYear> studentAssignments)
 {
     StudentSchoolYearStorage.Add(studentAssignments);
 }