コード例 #1
0
        public async Task <IHttpActionResult> CheckAvailbilityOfFlight(DateTime startDate, DateTime endDate, int passengerCount)
        {
            var flightList = await flightManager.CheckAvailbilityOfFlight(startDate, endDate, passengerCount);

            if (flightList != null && flightList.Count() > 0)
            {
                return(Ok(flightList));
            }
            else
            {
                return(NotFound());
            }
        }