/// <summary> /// Add an item to the import. /// </summary> /// <param name="import"></param> /// <param name="itemName"></param> /// <param name="itemDisplayName"></param> /// <param name="isDeleted"></param> private void AddImportItem(AttributeValuesImportRequest import, string itemName, string itemDisplayName, bool isDeleted = false) { import.Items.Add(new AttributeValuesImportRequestItem() { Value = itemName, DisplayName = itemDisplayName, Deleted = isDeleted }); }
public AttributeValuesImportResponse ImportAttributesToPromoService(AttributeValuesImportRequest qixolAttributeImport) { _logger.Information("ImportAttributesToPromoService called"); AttributeValuesImportResponse importResult = null; try { var importService = _promoSettings.GetImportService(); importResult = importService.ImportAttributeValues(qixolAttributeImport); } catch (Exception ex) { _logger.Error("Qixol Promos attribute values update", ex); } return importResult; }