public vm_boeking(GmmDbContext pContext) { _context = pContext; _boeking = new Boeking { Id = 0, BandId = 0, Datum = DateTime.Today, BeginUur = DateTime.Now, EindUur = DateTime.Now.AddHours(2), PodiumId = 0 }; Band = new vm_band(_context); KleurCode = new vm_kleurcode(_context); Podium = new vm_podium(_context); Tent = new vm_tent(_context); Tourmanager = new vm_begeleiding(_context) { BoekingId = Id, FunctieId = 1 }; ProductieManager = new vm_begeleiding(_context) { BoekingId = Id, FunctieId = 2 }; Catering = new vm_catering(_context); CateringCommentaren = new vm_commentaar(_context); Voorzieningen = new vm_voorziening(_context); VoorzieningCommentaren = new vm_commentaar(_context); }
public void GetBandById(int pBandId) { _band = (_context.Bands.Where(b => b.Id == pBandId).SingleOrDefault()); KleurCode = new vm_kleurcode(_context); KleurCode.GetKleurcodeById((int)_band.KleurCodeId); }