public void UpdateExtra(Extra extra) { if (extra != null) { dbContext.Entry(extra).State = EntityState.Modified; dbContext.SaveChanges(); } }
public void UpdateCustomer(Customer customer) { dbContext.Entry(customer).State = EntityState.Modified; try { dbContext.SaveChanges(); } catch (DbUpdateConcurrencyException) { throw; } }
public void UpdateProduct(Product product) { if (product != null) { dbContext.Entry(product).State = EntityState.Modified; try { dbContext.SaveChanges(); } catch (DbUpdateConcurrencyException) { throw; } } }