Пример #1
0
        private async Task DeleteAllTranslations(ProductCategoryChangedEvent e)
        {
            var key    = e.OldValue.LocalizationToken;
            var values = await _localizedValuesService.GetAllByKey(key);

            foreach (var value in values)
            {
                await _localizedValuesService.DeleteAsync(value.Locale, value.Key, e.Username, e.CorrelationId);
            }
        }
Пример #2
0
        private async Task DeleteAllTranslations(CurrencyChangedEvent e)
        {
            var key    = GetKey(e.OldValue.Id);
            var values = await _localizedValuesService.GetAllByKey(key);

            foreach (var value in values)
            {
                await _localizedValuesService.DeleteAsync(value.Locale, value.Key, e.Username, e.CorrelationId);
            }
        }