public T Update(T entity) { context.Entry <T>(entity).State = System.Data.Entity.EntityState.Modified; return(entity); }
public void Update(T entity) { _dBContext.Entry(entity).State = EntityState.Modified; }