Пример #1
0
 public void changeStudiejaarFromStudent(Studiejaar studiejaar)
 {
     _ingelogdeStudent.FKStudiejaar = studiejaar.IDStudiejaar;
     _persistController.adjustStudent(_ingelogdeStudent);
     _studentRepository.StudentLijst = _persistController.getStudent();
 }
Пример #2
0
 public void addStudiejaar(Studiejaar studiejaar)
 {
     _persistController.addStudiejaar(studiejaar);
     _studiejaarRepository.StudiejaarLijst = _persistController.getStudiejaar();
 }
Пример #3
0
 public bool addStudierichtingStudiejaarToStudent(Studierichting studierichting, Studiejaar studiejaar)
 {
     if (!_studentStudierichtingRepository.searchCombination(studierichting.IDStudierichting, _ingelogdeStudent.IDGebruiker))
     {
         StudentStudierichting studentstudierichting = new StudentStudierichting(_ingelogdeStudent.IDGebruiker, studierichting.IDStudierichting, DateTime.Today);
         _persistController.addStudentStudierichting(studentstudierichting);
         _studentStudierichtingRepository.StudentStudierichtingLijst = _persistController.getStudentStudierichting();
         _ingelogdeStudent.FKStudiejaar = studiejaar.IDStudiejaar;
         //pas student aan in databank en in repo
         _persistController.adjustStudent(_ingelogdeStudent);
         _studentRepository.StudentLijst = _persistController.getStudent();
         return(true);
     }
     else
     {
         return(false);
     }
 }
 //constructor
 //methods
 public void addStudiejaarToRepository(Studiejaar studiejaar)
 {
     _studiejaarLijst.Add(studiejaar);
 }