Ejemplo n.º 1
0
        /// <summary>
        /// This method forwards the information of the seat change to the dataAccess class
        /// </summary>
        /// <param name="sFlightID"></param>
        /// <param name="seat"></param>
        /// <param name="ID"></param>
        public void ChangedSeat(string sFlightID, string seat, string ID)
        {
            try
            {
                int IFID = 0;
                int IID  = 0;
                Int32.TryParse(sFlightID, out IFID);
                Int32.TryParse(ID, out IID);

                clsData.ChangeSeat(IFID, seat, IID);
            }
            catch (Exception ex)
            {
                throw new Exception(MethodInfo.GetCurrentMethod().DeclaringType.Name + "." + MethodInfo.GetCurrentMethod().Name + " -> " + ex.Message);
            }
        }