public void EditUser(Users user) { db = new UsersContext(); db.Entry(user).State = EntityState.Modified; db.SaveChanges(); }
public ActionResult EditUser(Users user) { repository.EditUser(user); return View("EditSuccesfull"); }