// // GET: /DerivedTypeModelBinder/ public ActionResult Index() { var model = new CustomerInfo { Contents = new List<IContent>(new IContent[] {new User(), new AddressInfo()}) }; return View(model); }
public ActionResult Index(CustomerInfo customerInfo) { TempData["customerInfo"] = customerInfo; return RedirectToAction("ResultSummary"); }