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(); }
public void DeleteWarehouseSync(ShopAcuWarehouseSync sync) { Entities.ShopAcuWarehouseSyncs.Remove(sync); Entities.SaveChanges(); }