diff --git a/backend/FwLite/LcmCrdt/CrdtMiniLcmApi.cs b/backend/FwLite/LcmCrdt/CrdtMiniLcmApi.cs index 49b293405..8279b9e0a 100644 --- a/backend/FwLite/LcmCrdt/CrdtMiniLcmApi.cs +++ b/backend/FwLite/LcmCrdt/CrdtMiniLcmApi.cs @@ -141,7 +141,7 @@ public async Task DeletePartOfSpeech(Guid id) public async Task CreateSemanticDomain(MiniLcm.Models.SemanticDomain semanticDomain) { - await validators.ValidateAndThrowAsync(semanticDomain); + await validators.ValidateAndThrow(semanticDomain); await dataModel.AddChange(ClientId, new CreateSemanticDomainChange(semanticDomain.Id, semanticDomain.Name, semanticDomain.Code, semanticDomain.Predefined)); return await GetSemanticDomain(semanticDomain.Id) ?? throw new NullReferenceException(); } @@ -157,7 +157,7 @@ public async Task UpdateSemanticDomain(Guid id, UpdateObjectInpu public async Task UpdateSemanticDomain(SemanticDomain before, SemanticDomain after) { - await validators.ValidateAndThrowAsync(after); + await validators.ValidateAndThrow(after); await SemanticDomainSync.Sync(before, after, this); return await GetSemanticDomain(after.Id) ?? throw new NullReferenceException($"unable to find semantic domain with id {after.Id}"); }