Exemple #1
0
        /// <inheritdoc/>
        public async Task UpdateAttributeOption(AttributeOptionDto input)
        {
            var attributeValue = await _attributeOptionRepository.GetAsync(input.Id);

            input.MapTo(attributeValue);
            await attributeManager.UpdateAttributeOptionAsync(attributeValue);
        }
Exemple #2
0
 /// <inheritdoc/>
 public async Task CreateAttributeOption(AttributeOptionDto input)
 {
     var attributeValue = input.MapTo <ProductAttributeOption>();
     await attributeManager.CreateAttributeOptionAsync(attributeValue);
 }