public void Update(Order entity, bool commit) { if (entity == null) throw new ArgumentNullException("entity"); _db.SaveChanges(); }
public static Order UpdateDb(this OrderViewModel vm, Order order) { //customer.Id = vm.Id; order.SourceId = vm.SourceId; order.CustomerId = vm.CustomerId; return order; }
public void Remove(Order entity, bool commit) { if (entity == null) throw new ArgumentNullException("entity"); _entities.Remove(entity); _db.SaveChanges(); }