Example #1
0
 public Lijst CreateList(string Naam)
 {
     _activeLijst = new Lijst(Naam, GetCode().ToString(), "Ja", _activeGebruiker.ID);
     _persistController.addWishlistsToDB(_activeLijst);
     LijstRepository.Lijsten = _persistController.getWishlistsFromDB();
     _activeLijst            = LijstRepository.getLastList();
     return(_activeLijst);
 }
Example #2
0
 public Controller()
 {
     _persistController             = new Persistence.Controller();
     CadeauRepository.Cadeaus       = _persistController.getCadeausFromDB();
     GebruikerRepository.Gebruikers = _persistController.getGebruikersFromDB();
     LijstRepository.Lijsten        = _persistController.getWishlistsFromDB();
     LHCRepository.LHCList          = _persistController.getLHCFromDB();
     _activeGebruiker = null;
     _activeLijst     = null;
     _currentLijst    = null;
     _currentLijstID  = null;
 }