public ActionResult Complex2(Simple1ViewModel item1, Simple1ViewModel item2) { return Content("Complex2: " + item1.Username + ":" + item1.Password + " | " + item2.Username + ":" + item2.Password); }
public ActionResult Complex5(FormCollection form) { var item = new Simple1ViewModel(); if (TryUpdateModel<Simple1ViewModel>(item)) { return RedirectToAction("Complex5"); } return View(item); }
public ActionResult Complex1(Simple1ViewModel item) { return Content("Complex1: " + item.Username + ":" + item.Password); }