I have a controller that has received a POST back, and has processed what the user has requested. I then build an object, and now, want to RedirectToAction..
return RedirectToAction() ("Index", "Location", r);
Where r is the well named object I am working with. But on the target action, r is null.
public ActionResult Index(LocationByAddressReply location)
Now, I read a few posts on here about this, but am battling to understand.
An option put forward wasL
TempData["myObject"] = myObject;
But that seems ... strange. Not type safe. Is this the most suitable way to pass objects?