Пример #1
0
 public void EditUser(Users user)
 {
     db = new UsersContext();
     db.Entry(user).State = EntityState.Modified;
     db.SaveChanges();
 }
Пример #2
0
 public ActionResult EditUser(Users user)
 {
     repository.EditUser(user);
     return View("EditSuccesfull");
 }