Ejemplo n.º 1
0
 public IHttpActionResult searchFlights([FromUri] long from = 0, [FromUri] long to = 0)
 {
     if (from != 0 && to != 0)
     {
         IList <FlightRazor> flights = anonymousUserFacade.GetFlightsByOriginCountryAndDestination(from, to);
         return(Ok(flights));
     }
     return(Content(HttpStatusCode.BadRequest, "You Have To Send Origin AND Destination Country"));
 }