public Boolean checking(int FlightNo)
        {
            Dictionary <int, int> available = ob.FlightSeatMock();

            if (available.ContainsKey(FlightNo) == false)
            {
                return(false);
            }
            else
            {
                return(true);
            }
        }
Exemple #2
0
        public Boolean checkFlight(int flightNo)
        {
            MockData.UserData     ob = new MockData.UserData();
            Dictionary <int, int> availableFlight = ob.FlightSeatMock();

            if ((availableFlight.ContainsKey(flightNo)) == false)
            {
                return(false);
            }
            else
            {
                return(true);
            }
        }