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); }
public VendorProductFileUploadWorker(SystemJob job) : base(job) { _repository = new VendorProductRepository(_logger); _service = new VendorProductService(new ImageHelper(new PersistenceHelper()), new LogService()); _uploadResult = new VendorProductUploadResult(); }