Example #1
0
        /// <summary>
        /// This method creates a passenger list using the dataaccess class.
        /// </summary>
        /// <param name="iListCount"></param>
        /// <param name="sFlightID"></param>
        /// <returns></returns>
        public List <string> CreateChoosePassengertList(ref int iListCount, string sFlightID)
        {
            try
            {
                List <string> sList = new List <string>();
                DataSet       ds    = new DataSet();

                ds = clsData.RetrieveChoosePassenger(ref iListCount, sFlightID);

                for (int i = 0; i < iListCount; i++)
                {
                    sList.Add(ds.Tables[0].Rows[i][1] + " " + ds.Tables[0].Rows[i][2]);
                }

                return(sList);
            }
            catch (Exception ex)
            {
                throw new Exception(MethodInfo.GetCurrentMethod().DeclaringType.Name + "." + MethodInfo.GetCurrentMethod().Name + " -> " + ex.Message);
            }
        }