Esempio n. 1
0
        public virtual async Task <int> DeleteIdentityResourceAsync(IdentityResourceDto identityResource)
        {
            var resource = identityResource.ToEntity();

            var deleted = await IdentityResourceRepository.DeleteIdentityResourceAsync(resource);

            await AuditEventLogger.LogEventAsync(new IdentityResourceDeletedEvent(identityResource));

            return(deleted);
        }
Esempio n. 2
0
        public async Task <int> DeleteIdentityResourceAsync(IdentityResourceDto identityResource)
        {
            var resource = identityResource.ToEntity();

            return(await _identityResourceRepository.DeleteIdentityResourceAsync(resource));
        }