示例#1
0
        public static int cancelReservation(int reservationNumber)
        {
            Search search = new HawkeyehvkBLL.Search();

            // check reservation number
            if (!search.validateReservationNumber(reservationNumber))// check reservation number
            {
                return(1);
            }
            else if (isReservationActive(reservationNumber))
            {
                return(4);
            }
            else
            {
                return(ReservationDB.cancelReservationDB(reservationNumber));
            }
        }