예제 #1
0
        private void AfficherListe()
        {
            ConsoleHelper.AfficherEntete("Afficher");

            try
            {
                ServiceDossierReservation service = new ServiceDossierReservation();
                this.liste = service.ListerDossierReservation();
                ConsoleHelper.AfficherListe(this.liste, strategieAffichageDossiers);
            }
            catch
            {
                ConsoleHelper.AfficherMessageErreur("Problème lors de l'affichage des Dossiers de Réservation!");
            }
        }
예제 #2
0
        public static void CreerDossier(int idVoyage, int idCLient, int nombreVoyageurs, List <Participant> participants, string carteBancaire)
        {
            DossierReservation dossier = new DossierReservation
            {
                IdVoyage            = idVoyage,
                IdClient            = idCLient,
                NumeroCarteBancaire = carteBancaire,
            };

            ServiceDossierReservation.CreerDossierReservation(dossier);
            int idDos = dossier.Id;

            foreach (Participant par in participants)
            {
                ServiceParticipant.CreerParticipant(par, idDos);
            }
        }