using System.Collections.Immutable; using Common.Security; using Connected.Globalization.Languages; using Connected.ServiceModel; using Connected.Services; using Connected.Services.Annotations; namespace Common.Globalization; /// /// The implementation of the service. /// internal class LanguageService : EntityService, ILanguageService { public LanguageService(IContext context) : base(context) { } [ServiceAuthorization(CommonClaims.CommonDelete)] public async Task Delete(PrimaryKeyArgs args) { await Invoke(GetOperation(), args); } [ServiceAuthorization(CommonClaims.CommonAdd)] public async Task Insert(LanguageInsertArgs args) { return await Invoke(GetOperation(), args); } [ServiceAuthorization(CommonClaims.CommonRead)] public async Task?> Query() { return await Invoke(GetOperation(), Dto.Empty); } [ServiceAuthorization(CommonClaims.CommonRead)] public async Task?> Query(PrimaryKeyListArgs args) { return await Invoke(GetOperation(), args); } [ServiceAuthorization(CommonClaims.CommonRead)] public async Task Resolve(LanguageResolveArgs args) { return await Invoke(GetOperation(), args); } [ServiceAuthorization(CommonClaims.CommonRead)] public async Task Select(PrimaryKeyArgs args) { return await Invoke(GetOperation(), args); } [ServiceAuthorization(CommonClaims.CommonRead)] public async Task Select(NameArgs args) { return await Invoke(GetOperation(), args); } [ServiceAuthorization(CommonClaims.CommonModify)] public async Task Update(LanguageUpdateArgs args) { await Invoke(GetOperation(), args); } }