public PartialViewResult UnterseiteVon2() { var p = new Person() { Vorname = "Daniel", Nachname = "Düsentrieb" }; return PartialView("_Person",p); }
public ActionResult PersonEdit(Person p) { return View(p); }
public ActionResult Test(Person newPerson) { bool ok = ModelState.IsValid; return View(newPerson); }
public ActionResult Hallo2(Person person) { return View(person); }
public ActionResult Test() { Person p = new Person { FirstName = "Sam", LastName = "Smith", BirthDate = new DateTime(1985, 6, 15) }; return View(p); }