public IHttpActionResult GetFlightNameByFilter(long orgCoun = 0, long destCoun = 0, long airline = 0, long flightNum = 0) { IList <Flight> flightsByFilter = anonymous.GetFlightsByFilter(orgCoun, destCoun, airline, flightNum); if (flightsByFilter.Count == 0) { Console.WriteLine("No flights were found to match the search terms"); return(NotFound()); } return(Ok(flightsByFilter)); }