public List <Vak> getVakIngelogdeStudent() { List <VakStudent> vakstudentlijst = _vakStudentRepository.getVakFromStudent(_ingelogdeStudent); List <Vak> vakkenlijst = new List <Vak>(); foreach (VakStudent item in vakstudentlijst) { Vak vak = _vakRepository.getVak(item.FKVak); vakkenlijst.Add(vak); } return(vakkenlijst); }
public bool addVakToStudent(Vak vak) { VakStudent vakstudent = new VakStudent(vak.IDVak, IngelogdeStudent.IDGebruiker); if (_vakStudentRepository.addVakStudentToRepository(vakstudent)) { _persistController.addVakStudent(vakstudent); return(true); } else { return(false); } }
public void addVak(Vak vak) { _persistController.addVak(vak); _vakRepository.VakLijst = _persistController.getVak(); }
public void AdjustVak(Vak vak, int id) { _persistController.adjustVak(vak, id); _vakRepository.VakLijst = _persistController.getVak(); }
//constructor //methods public void addVakToRepository(Vak vak) { _vakLijst.Add(vak); }