public Boolean supprimerParticipant(Participant part) { DAL_Participant partService = new DAL_Participant(); try { partService.supprimerParticipant(part); return(true); } catch (Exception) { return(false); } }
public Boolean modifierHasListesParticipant(Participant part) { DAL_Participant partService = new DAL_Participant(); try { partService.modifierHasListesParticipant(part); return(true); } catch (Exception) { return(false); } }
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); }
public Participant getAllInfosByParticipant(Participant part) { DAL_Participant participantService = new DAL_Participant(); return(participantService.getAllInfosByParticipantById(part.id_participant)); }
public Participant getParticipantAyantListeByEvenementAndPersonne(Evenement evt, Personne personne) { DAL_Participant participantService = new DAL_Participant(); return(participantService.getParticipantByIdPersonneAndEvenementId(personne.id_personne, evt.id_evenement)); }
public List <Participant> getAllParticipantAyantListeByEvenement(Evenement evt) { DAL_Participant participantService = new DAL_Participant(); return(participantService.getAllParticipantAyantListeByEvenement(evt.id_evenement)); }