So if i do this in the first controller:
public class AController:Controller
{
public ActionResult ActionOne()
{
MyObject myObj = new MyObject()
myObj.Name="Jeff Attwood";
myObj.Age =60;
myObj.Address = new Address(40,"Street");
return RedirectToAction("ActionTwo", "BController", myObj );
}
}
In the second controller, myObj will come out ok, but Address will be null.
public class BController:Controller
{
public ActionResult ActionOne(MyObject obj)
{
//obj.Address is null?
}
}
Is this as expected? any way around it?