Guest User

Untitled

a guest
Jul 17th, 2018
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.83 KB | None | 0 0
  1. public class FlightSearchResults
  2. {
  3. public FlightSearch SearchModel { get; set; }
  4. public List<vwLowFareSearchResults> SearchResults { get; set; }
  5. public string TestString { get; set; }
  6. public DateTime TestDate { get; set; }
  7. }
  8.  
  9. FlightSearchResults flightSearchResults = new FlightSearchResults();
  10. flightSearchResults.SearchModel = model;
  11. flightSearchResults.SearchResults = flights;
  12. flightSearchResults.TestDate = DateTime.Now.AddDays(-2);
  13. flightSearchResults.TestString = "Just Testing . . .";
  14. return RedirectToAction("index", "flights", flightSearchResults);
  15.  
  16. return RedirectToAction("index", "flights", new { SearchResults = flights, SearchModel = model });
  17. return RedirectToAction("Result", "Dialog", new RouteValueDictionary(flightSearchResults));
  18.  
  19. return View("~/Views/Flights/Index.cshtml", flightSearchResults);
Add Comment
Please, Sign In to add comment