//version 4.0--------------------------------------------------------------------------------- public StudentScore calculateTotalScoreAndAvaragePerStudent(int studentID) { StudentScore _studentsScore = new StudentScore(); try { ScoreandAvarageManager Manager = new ScoreandAvarageManager(); _studentsScore = Manager._calculateTotalScoreAndAvaragePerStudent(studentID: studentID); } catch (Exception ex) { throw new Exception(ex.Message); } return(_studentsScore); }
public Boolean setScorePerSubject(double score, int studentID, int subjectID) { bool done = true; try { ScoreandAvarageManager manager = new ScoreandAvarageManager(); done = manager._setScorePerSubject(studentID: studentID, subjectID: subjectID, score: score); } catch (Exception ex) { throw new Exception(ex.Message); } return(done); }