Exemplo n.º 1
0
 /// <summary>
 /// Delete a resource key - warning: this will delete all the associated resource strings in all languages
 /// for this key
 /// </summary>
 public void DeleteLocaleResourceKey(LocaleResourceKey resourceKey)
 {
     try
     {
         // Delete the key and its values
         _localizationRepository.DeleteResourceKey(resourceKey);
     }
     catch (Exception ex)
     {
         throw new ApplicationException(string.Format("Unable to delete resource key: {0}", ex.Message), ex);
     }
 }
Exemplo n.º 2
0
 /// <summary>
 /// Delete a resource key - warning: this will delete all the associated resource strings in all languages
 /// for this key
 /// </summary>
 public void DeleteLocaleResourceKey(LocaleResourceKey resourceKey)
 {
     try
     {
         // Delete the key and its values
         _localizationRepository.DeleteResourceKey(resourceKey);
         _cacheService.ClearStartsWith(AppConstants.LocalisationCacheName);
     }
     catch (Exception ex)
     {
         throw new ApplicationException(string.Format("Unable to delete resource key: {0}", ex.Message), ex);
     }
 }