public ActionResult Complex5(string xx) { var item = new SimpleViewModel(); if(TryUpdateModel<SimpleViewModel>(item)) { return RedirectToAction("Complex5"); } return View(item); }
public ActionResult Form2(SimpleViewModel item1, SimpleViewModel item2) { return Content("item1 = " +item1.Username + ":" + item1.Age + ". item2 = " + item2.Username + ":" + item2.Age); }