public T Update(T item) { _db.Entry(item).State = EntityState.Modified; return(item); }
public void Update(TEntity obj) { Db.Entry(obj).State = EntityState.Modified; Db.SaveChanges(); }
public void Update(T entity) { _dbSet.Attach(entity); _context.Entry(entity).State = EntityState.Modified; }