You cannot send data using RedirectAction . This is because you are doing a 301 redirect and returning to the client.
What you need is to save it in TempData:
var hSM = new HotelSearchModel(); hSM.CityID = CityID; hSM.StartAt = StartAt; hSM.EndAt = EndAt; hSM.AdultCount = AdultCount; hSM.ChildCount=ChildCount; TempData["myObj"] = new { culture = culture,hotelSearchModel = hSM }; return RedirectToAction("Search");
After that, you can get again from TempData:
public ActionResult Search(string culture, HotelSearchModel hotelSearchModel) { var obj = TempData["myObj"]; hotelSearchModel = obj.hotelSearchModel; culture = obj.culture; }
source share