public void Update(tblChqCancellation op) { _db.Entry(op).State = EntityState.Modified; _db.Configuration.ValidateOnSaveEnabled = false; Save(); _db.Configuration.ValidateOnSaveEnabled = true; }
public void Update(AspNetUser users) { _db.Entry(users).State = EntityState.Modified; _db.Configuration.ValidateOnSaveEnabled = false; Save(); _db.Configuration.ValidateOnSaveEnabled = true; }