Пример #1
0
 public PartialViewResult UnterseiteVon2()
 {
     var p = new Person() { Vorname = "Daniel", Nachname = "Düsentrieb" };
       return PartialView("_Person",p);
 }
Пример #2
0
 public ActionResult PersonEdit(Person p)
 {
     return View(p);
 }
Пример #3
0
 public ActionResult Test(Person newPerson)
 {
     bool ok = ModelState.IsValid;
     return View(newPerson);
 }
Пример #4
0
 public ActionResult Hallo2(Person person)
 {
     return View(person);
 }
Пример #5
0
 public ActionResult Test()
 {
     Person p = new Person { FirstName = "Sam", LastName = "Smith", BirthDate = new DateTime(1985, 6, 15) };
     return View(p);
 }