Ejemplo n.º 1
0
 public ActionResult Edit([Bind(Include = "UserNameID,FirstName,LastName,Password,LastLogin,DayOfCreate,PasswordChange")] User user)
 {
     if (ModelState.IsValid)
     {
         db.Entry(user).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(user));
 }