Пример #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);
 }