Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class FlightSearchResults
- {
- public FlightSearch SearchModel { get; set; }
- public List<vwLowFareSearchResults> SearchResults { get; set; }
- public string TestString { get; set; }
- public DateTime TestDate { get; set; }
- }
- FlightSearchResults flightSearchResults = new FlightSearchResults();
- flightSearchResults.SearchModel = model;
- flightSearchResults.SearchResults = flights;
- flightSearchResults.TestDate = DateTime.Now.AddDays(-2);
- flightSearchResults.TestString = "Just Testing . . .";
- return RedirectToAction("index", "flights", flightSearchResults);
- return RedirectToAction("index", "flights", new { SearchResults = flights, SearchModel = model });
- return RedirectToAction("Result", "Dialog", new RouteValueDictionary(flightSearchResults));
- return View("~/Views/Flights/Index.cshtml", flightSearchResults);
Add Comment
Please, Sign In to add comment