Ejemplo n.º 1
0
        public ActionResult PassModelToView()
        {
            var customer = new Customer
                               {
                                   Name = "Somebody",
                                   Address = "Someplace",
                                   Deposit = 10000000
                               };

            return View(customer);
        }
Ejemplo n.º 2
0
        public ActionResult ModelValidation()
        {
            var customer = new Customer
                               {
                                   Name = "Somebody",
                                   Address = "",
                                   Deposit = 10000000
                               };

            return View(customer);
        }
Ejemplo n.º 3
0
 public ActionResult PassModelToController(Customer customer)
 {
     return View(customer);
 }
Ejemplo n.º 4
0
 public ActionResult ModelValidation(Customer customer)
 {
     return View(customer);
 }