Esempio n. 1
0
        /// <summary>
        /// Method Deletes the flight with FlightId from table Flights
        /// </summary>
        /// <param name="flightid">indicates id of flight</param>
        /// <returns>boolean value</returns>
        public bool DeleteFlightById(int FlightId)
        {
            try
            {
                //Call GetAlllight() to fetch all Flight
                bool isDeleted = fs.DeleteFlightById(FlightId);

                //return the response
                return(isDeleted);
            }
            catch (FlightException)
            {
                //rethrow
                throw;
            }
        }