Esempio n. 1
0
        // GET: Home
        public ActionResult Index()
        {
            var addressRecord = new AddressViewModel
            {
                Id = 5,
                Address = "123 Main St.",
                City = "Rockville",
                State = "MD",
                Zip = "12345"
            };

            return View(addressRecord);
        }
Esempio n. 2
0
 public ActionResult Save(AddressViewModel addressRecord)
 {
     addressRecord.Save();
     return View("Index");
 }