public void AddActivityGrade(PlainText subjectName, RegistrationNumber regNumber, Grade grade) { _subjects.Find(d => d.SubjectInfo.Name == subjectName) .GetSituationForStudent(regNumber) .AddActivityGrade(grade); }
public void AddAttendance(PlainText subjectName, RegistrationNumber regNumber, Attendance attendance) { _subjects.Find(d => d.SubjectInfo.Name == subjectName) .GetSituationForStudent(regNumber) .AddAttendance(attendance); }
public Grade CalculateStudentAverage(PlainText subjectName, RegistrationNumber regNumber) { return _definedSubjects.Find(d => d.SubjectInfo.Name == subjectName).GetAverageForStudent(regNumber); }