示例#1
0
        public void InsertWarehouseSync(ShopifyLocation location, AcumaticaWarehouse warehouse)
        {
            var sync = new ShopAcuWarehouseSync();

            sync.ShopifyLocation    = location;
            sync.AcumaticaWarehouse = warehouse;
            sync.DateCreated        = DateTime.UtcNow;
            sync.LastUpdated        = DateTime.UtcNow;
            Entities.ShopAcuWarehouseSyncs.Add(sync);
            Entities.SaveChanges();
        }
示例#2
0
 public void DeleteWarehouseSync(ShopAcuWarehouseSync sync)
 {
     Entities.ShopAcuWarehouseSyncs.Remove(sync);
     Entities.SaveChanges();
 }