Exemple #1
0
 //
 // GET: /Default1/
 public ActionResult Index()
 {
     User u = new User()
     {
         Name = "Mike",
         Password = "******",
         Email = "*****@*****.**",
         UserId = 1,
         Address = new Address()
         {
             City = "Detroit",
             StateCode = "MI",
             Line1 = "600 Woodward",
             Zip1 = 48088
         }
     };
     return View("Index", u);
 }
Exemple #2
0
 //
 // GET: /Default1/Create
 public ActionResult Create(User u)
 {
     return View();
 }