コード例 #1
0
        public ActionResult Test()
        {
            var addresses = new List<Address>() {
                new Address { Id = 1, FirstLine = "Palam Vihar", City = "Gurgaon", State = "Haryana", Country = "India" },
                new Address { Id = 2, FirstLine = "Palam Vihar Ext", City = "Gurgoan", State = "Haryana", Country = "India" },
            };

            var item = new CheckBoxModel() {
                Id = 1,
                Email = 
                "*****@*****.**",
                Subscribe = true,
                Address = addresses
            };

            return View(item);
        }
コード例 #2
0
        public ActionResult Test(CheckBoxModel model)
        {
            

            return View();
        }