Example #1
0
        public bool DeleteBookingById(int bookingId)
        {
            try
            {
                //Call GetAlllight() to fetch all Flight
                bool isDeleted = bs.DeleteBookingById(bookingId);

                //return the response
                return(isDeleted);
            }
            catch (FlightException)
            {
                //rethrow
                throw;
            }
        }
        public bool DeleteBookingById(int id)
        {
            try
            {
                //Checks the booking Id and deletws data of it
                bool isDeleted = bs.DeleteBookingById(id);

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