Esempio n. 1
0
        public static int InschrijvingToevoegen(int deelnemerId)
        {
            ConferentieSysteemDataContext data = new ConferentieSysteemDataContext();
            Inschrijving ins = new Inschrijving(deelnemerId);

            data.Inschrijvings.InsertOnSubmit(ins);
            data.SubmitChanges();

            return(ins.ID);
        }
Esempio n. 2
0
        public static bool BestaatLink(Inschrijving inschrijving, Conferentie conferentie)
        {
            ConferentieSysteemDataContext data = new ConferentieSysteemDataContext();

            int a = (from icdl in data.InschrijvingConferntieDagLinks
                     where icdl.Inschrijving.ID == inschrijving.ID && icdl.ConferentieDag.Conferentie.ID == conferentie.ID
                     select icdl).Count();

            return(a >= 1);
        }