public static IArea CreateArea(this IAreaService areaService, Enum id) { if (areaService == null) { throw new ArgumentNullException(nameof(areaService)); } return(areaService.CreateArea(AreaIdGenerator.Generate(id))); }
public void AddSynonymsForComponent(Enum areaId, Enum componentId, params string[] synonyms) { if (synonyms == null) { throw new ArgumentNullException(nameof(synonyms)); } AddSynonymsForComponent(AreaIdGenerator.Generate(areaId), componentId, synonyms); }
public void AddSynonymsForArea(Enum areaId, params string[] synonyms) { if (areaId == null) { throw new ArgumentNullException(nameof(areaId)); } if (synonyms == null) { throw new ArgumentNullException(nameof(synonyms)); } AddSynonyms(_areaSynonyms, AreaIdGenerator.Generate(areaId), synonyms); _storage.PersistAreaSynonyms(_areaSynonyms); }