예제 #1
0
        public void Update(Order entity, bool commit)
        {
            if (entity == null)
                throw new ArgumentNullException("entity");

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

            _entities.Remove(entity);
            _db.SaveChanges();
        }