Exemple #1
0
        public Boolean supprimerParticipant(Participant part)
        {
            DAL_Participant partService = new DAL_Participant();

            try
            {
                partService.supprimerParticipant(part);

                return(true);
            }
            catch (Exception)
            {
                return(false);
            }
        }
Exemple #2
0
        public Boolean modifierHasListesParticipant(Participant part)
        {
            DAL_Participant partService = new DAL_Participant();

            try
            {
                partService.modifierHasListesParticipant(part);

                return(true);
            }
            catch (Exception)
            {
                return(false);
            }
        }
Exemple #3
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);
        }
Exemple #4
0
        public Participant getAllInfosByParticipant(Participant part)
        {
            DAL_Participant participantService = new DAL_Participant();

            return(participantService.getAllInfosByParticipantById(part.id_participant));
        }
Exemple #5
0
        public Participant getParticipantAyantListeByEvenementAndPersonne(Evenement evt, Personne personne)
        {
            DAL_Participant participantService = new DAL_Participant();

            return(participantService.getParticipantByIdPersonneAndEvenementId(personne.id_personne, evt.id_evenement));
        }
Exemple #6
0
        public List <Participant> getAllParticipantAyantListeByEvenement(Evenement evt)
        {
            DAL_Participant participantService = new DAL_Participant();

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