public async Task SearchFlights(SearchCriteria criteria) { SearchInProgress = true; NotifyStateChanged(); SearchResults = await _flightSearchService.Search(criteria) as IReadOnlyList <Itinerary>; SearchInProgress = false; NotifyStateChanged(); }
public void Display() { var criteria = new FlightSearchForm() { TripType = TripType.Return, From = "LHR", To = "DME", Departure = DateTime.Today.AddDays(30), Return = DateTime.Today.AddDays(37), FlightClass = FlightClass.Economy, NumberOfAdults = 1, NumberOfChildren = 0, NumberOfInfant = 0, IsDirectFlight = false, IsDateFlexible = false }; var result = _flightSearchService.Search(criteria); Console.WriteLine(result); }
public JsonResult Search(FlightSearchRQ FlightSearchRQ) { return(Json(IFlightOfferSVCaller.Search(FlightSearchRQ))); }