public ActionResult SearchFormSubmit(SearchFormModel model)
        {
            TempData["SearchFormModel"] = model;

            if (!ModelState.IsValid)
                return CurrentUmbracoPage();

            ArrayList searchResults = new ArrayList();

            // put 10 dummy results in a list for the view
            for (int i = 0; i < 10; i++)
                if (model.departureAirports != null && model.arrivalAirports != null)
                    searchResults.Add(new SearchFormResult
                    {
                        airport = model.departureAirports[0] + i,
                        destination = model.arrivalAirports[0] + i
                    });
                else
                    searchResults.Add(new SearchFormResult
                    {
                        airport = "Search Result " + i,
                        destination = "Search Result " + i
                    });

            TempData["SearchResults"] = searchResults;

            return RedirectToCurrentUmbracoPage();
        }
 public ActionResult SearchFormTypeChanged(SearchFormModel model)
 {
     TempData["SearchFormModel"] = model;
     return RedirectToCurrentUmbracoPage();
 }