예제 #1
0
        public ActionResult PassModelToView()
        {
            var customer = new Customer
                               {
                                   Name = "Somebody",
                                   Address = "Someplace",
                                   Deposit = 10000000
                               };

            return View(customer);
        }
예제 #2
0
        public ActionResult ModelValidation()
        {
            var customer = new Customer
                               {
                                   Name = "Somebody",
                                   Address = "",
                                   Deposit = 10000000
                               };

            return View(customer);
        }
예제 #3
0
 public ActionResult PassModelToController(Customer customer)
 {
     return View(customer);
 }
예제 #4
0
 public ActionResult ModelValidation(Customer customer)
 {
     return View(customer);
 }