示例#1
0
 public ActionResult saveuser(user user)
 {
     db.user.Add(user);
     db.SaveChanges();
     return View(user);
 }
示例#2
0
 public ActionResult adduser(FormCollection Form)
 {
     user user = new user();
     user.name = Form["Name"];
     return View(user);
 }