public async Task <HttpResponseMessage> Get(HttpRequestMessage request, int id)
        {
            var flight = FlightStorage.GetFlightById(id);

            if (flight == null)
            {
                return(request.CreateResponse(HttpStatusCode.NotFound));
            }
            return(request.CreateResponse(HttpStatusCode.OK, flight));
        }
        public HttpResponseMessage SearchFlightById(HttpRequestMessage request, int id)
        {
            Flight flight = FlightStorage.GetFlightById(id);

            if (flight == null)
            {
                return(request.CreateResponse(HttpStatusCode.NotFound));
            }
            return(request.CreateResponse(HttpStatusCode.OK, flight));
        }