public void Update(TEntity item) { _context.Entry(item).State = EntityState.Modified; _context.SaveChanges(); }
public void Update(T instance) { _webShopDbContext.Entry <T>(instance).State = EntityState.Modified; SubmitChanges(); }