Ejemplo n.º 1
0
        /// <summary>
        /// This method creates a seat list.
        /// </summary>
        /// <param name="iListCount"></param>
        /// <param name="sFlightID"></param>
        /// <returns></returns>
        public List <string> CreateSeatList(ref int iListCount, string sFlightID)
        {
            try
            {
                List <string> sList = new List <string>();
                DataSet       ds    = new DataSet();

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

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

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