using Common.Types.Security; using Connected.ServiceModel; using Connected.Services; using Connected.Services.Annotations; using System.Collections.Immutable; namespace Common.Types.Countries; internal sealed class CountryService : EntityService, ICountryService { public CountryService(IContext context) : base(context) { } [ServiceAuthorization(Claims.Delete)] public async Task Delete(PrimaryKeyArgs args) { await Invoke(GetOperation(), args); } [ServiceAuthorization(Claims.Add)] public async Task Insert(InsertCountryArgs args) { return await Invoke(GetOperation(), args); } [ServiceAuthorization(Claims.Read)] public async Task?> Query() { return await Invoke(GetOperation(), Dto.Empty); } [ServiceAuthorization(Claims.Read)] public async Task?> Query(PrimaryKeyListArgs args) { return await Invoke(GetOperation(), args); } [ServiceAuthorization(Claims.Read)] public async Task Select(PrimaryKeyArgs args) { return await Invoke(GetOperation(), args); } [ServiceAuthorization(Claims.Read)] public async Task Select(NameArgs args) { return await Invoke(GetOperation(), args); } [ServiceAuthorization(Claims.Modify)] public async Task Update(UpdateCountryArgs args) { await Invoke(GetOperation(), args); } }