public void Update(T entity) { table.Attach(entity); _db.Entry(entity).State = EntityState.Modified; }