/// <summary>
        /// Gets the passangers.
        /// </summary>
        /// <returns></returns>
        public InterJetPassangers GetPassangers()
        {
            var passangers = new List <InterJetPassanger>();
            var userInput  = (InterJetAvailabilityUserInput)this.Session["UserInput"];

            if (userInput != null)
            {
                if (userInput.HasAdultsPassangers)
                {
                    passangers.AddRange(this.GetPassangers(this.PassangerGroupBox, InterJetPassangerType.Adult));
                }
                if (userInput.HasChildrenPassangers)
                {
                    passangers.AddRange(this.GetPassangers(this.PassangerGroupBox, InterJetPassangerType.Child));
                }
                if (userInput.HasSeniorsPassangers)
                {
                    passangers.AddRange(this.GetPassangers(this.PassangerGroupBox, InterJetPassangerType.Senior));
                }
            }
            var interJetPassangers = new InterJetPassangers();

            interJetPassangers.AddPassangers(passangers);
            foreach (var pax in interJetPassangers.GetAll())
            {
                pax.Nationality = this.NationalityComboBox.SelectedValue.ToString();
            }


            return(interJetPassangers);
        }
        public InterJetPassangers GetPassangers()
        {
            var passangers   = new List <InterJetPassanger>();
            int contAdult    = 0;
            int contChildren = 0;
            int contInfante  = 0;

            if (VolarisSession.ListaTipoPassenger.Count > 0)
            {
                foreach (TiposVolaris.PassengerType a in VolarisSession.ListaTipoPassenger)
                {
                    if (a.ToString() == "Adult")
                    {
                        contAdult = contAdult + 1;
                    }
                    if (a.ToString() == "Children")
                    {
                        contChildren = contChildren + 1;
                    }
                    if (a.ToString() == "Infant")
                    {
                        contInfante = contInfante + 1;
                    }
                }

                if (contAdult > 0)
                {
                    passangers.AddRange(this.GetPassangers(this.PassangerGroupBox, InterJetPassangerType.Adult));
                }
                if (contChildren > 0)
                {
                    passangers.AddRange(this.GetPassangers(this.PassangerGroupBox, InterJetPassangerType.Child));
                }
                if (contInfante > 0)
                {
                    passangers.AddRange(this.GetPassangers(this.PassangerGroupBox, InterJetPassangerType.Infant));
                }

                VolarisSession.ContPax = contAdult + contChildren;
            }

            var interJetPassangers = new InterJetPassangers();

            interJetPassangers.AddPassangers(passangers);

            VolarisSession.InterJetPassangers = passangers;
            List <PasajerosVolaris> pasajeros = new List <PasajerosVolaris>();

            var valores = this.PassangerGroupBox;

            VolarisSession.AddPassengerComplete = new List <DatosPasajerosVolaris>();

            for (int i = 0; i < passangers.Count; i++)
            {
                PasajerosVolaris pasajero = new PasajerosVolaris();
                int tripinfant            = 0;

                TiposVolaris.FirstTittle titulo = TranslateStringToFirstTittle(passangers[i].Title);
                string name     = passangers[i].Name;
                string lastName = passangers[i].LastName;
                TiposVolaris.Gender        genero        = TranslateStringToGender(passangers[i].Gender);
                TiposVolaris.PassengerType typePassanger = TranslateStringToPassengerType(passangers[i].PassangerType);
                DateTime fechanacimiento = passangers[i].DateOfBirth;
                if (titulo.ToString() == "INF")
                {
                    tripinfant = passangers[i].TripInfant;
                    pasajero.TipoDeViajeInfante = tripinfant;
                }

                pasajero.Titulo          = titulo;
                pasajero.Nombres         = name;
                pasajero.Apellidos       = lastName;
                pasajero.Genero          = genero;
                pasajero.TipoPasajero    = typePassanger;
                pasajero.FechaNacimiento = fechanacimiento;
                pasajero.Nacionalidad    = VolarisSession.Nacionalidad;
                pasajero.Pais            = VolarisSession.Nacionalidad;
                pasajero.City            = "";
                pasajeros.Add(pasajero);
                PasajeroSession = pasajero;
                VolarisSession.AddPassengerComplete.Add(new DatosPasajerosVolaris(pasajero, passangers[i].DateOfBirth.Date));
            }
            VolarisServiceManager cliente = new VolarisServiceManager();

            cliente.AgregarPasajeros(pasajeros, VolarisSession.Signature);
            return(interJetPassangers);
        }