public ActionResult FromFlight(String country, DateTime arrivalTime) { var countries = hotelService.GetAllCountries(); var query = new HotelQueryViewModel(countries); query.Country = country; query.CheckIn = arrivalTime; return View("Index", query); }
private MvcApplication1.HotelService.HotelModel[] GetHotels(HotelQueryViewModel h) { var hotels = hotelService.SearchForHotels(h.Country, h.CheckIn, h.CheckOut); return hotels; }
public ActionResult Search(HotelQueryViewModel h) { Session["LastHotelQuery"] = h; h.Hotels = GetHotels(h); return PartialView("HotelQueryResults", h); }