Beispiel #1
0
        public List <Participant> getAllParticipantSaufConnecteAyantListeByEvenement(Evenement evt, Participant part)
        {
            DAL_Participant participantService = new DAL_Participant();

            List <Participant> listeTmp = participantService.getAllParticipantAyantListeByEvenement(evt.id_evenement);

            for (int i = 0; i < listeTmp.Count; i++)
            {
                Boolean onBreak = false;
                if (listeTmp[i].id_personne == part.id_personne)
                {
                    listeTmp.Remove(listeTmp[i]);
                    onBreak = true;
                }
                if (onBreak)
                {
                    break;
                }
            }

            return(listeTmp);
        }
Beispiel #2
0
        public List <Participant> getAllParticipantAyantListeByEvenement(Evenement evt)
        {
            DAL_Participant participantService = new DAL_Participant();

            return(participantService.getAllParticipantAyantListeByEvenement(evt.id_evenement));
        }