public ActionResult PassModelToView() { var customer = new Customer { Name = "Somebody", Address = "Someplace", Deposit = 10000000 }; return View(customer); }
public ActionResult ModelValidation() { var customer = new Customer { Name = "Somebody", Address = "", Deposit = 10000000 }; return View(customer); }
public ActionResult PassModelToController(Customer customer) { return View(customer); }
public ActionResult ModelValidation(Customer customer) { return View(customer); }