示例#1
0
 public ActionResult Complex2(Simple1ViewModel item1, Simple1ViewModel item2)
 {
     return Content("Complex2: "
          + item1.Username + ":" + item1.Password
          + " | "
          + item2.Username + ":" + item2.Password);
 }
示例#2
0
        public ActionResult Complex5(FormCollection form)
        {
            var item = new Simple1ViewModel();

            if (TryUpdateModel<Simple1ViewModel>(item))
            {
                return RedirectToAction("Complex5");
            }

            return View(item);
        }
示例#3
0
 public ActionResult Complex1(Simple1ViewModel item)
 {
     return Content("Complex1: " + item.Username + ":" + item.Password);
 }