コード例 #1
0
        public UploadResultType UpdateEisProductLinks(string eisSupplierSKU, string upc, int minPack)
        {
            if (string.IsNullOrEmpty(upc))
            {
                return(UploadResultType.NoChanges);
            }

            // get the EIS products with have the same UPC code
            var compatibleEisProductSKUs = getCompatibleEisProductSKUs(upc, minPack);
            var uploadResult             = new VendorProductUploadResult();

            // update the vendor product links
            updateVendorProductLinks(eisSupplierSKU, compatibleEisProductSKUs);
            uploadResult.UpdatedEisSupplierSKUs.Add(eisSupplierSKU);

            return(UploadResultType.UpdatedItem);
        }
コード例 #2
0
 public VendorProductFileUploadWorker(SystemJob job) : base(job)
 {
     _repository   = new VendorProductRepository(_logger);
     _service      = new VendorProductService(new ImageHelper(new PersistenceHelper()), new LogService());
     _uploadResult = new VendorProductUploadResult();
 }