Exemplo n.º 1
0
        public async Task <IdentityResourcesDto> GetIdentityResourcesAsync(string search, int page = 1, int pageSize = 10)
        {
            var pagedList = await _identityResourceRepository.GetIdentityResourcesAsync(search, page, pageSize);

            var identityResourcesDto = pagedList.ToModel();

            return(identityResourcesDto);
        }
Exemplo n.º 2
0
        public virtual async Task <IdentityResourcesDto> GetIdentityResourcesAsync(string search, int page = 1, int pageSize = 10)
        {
            var pagedList = await IdentityResourceRepository.GetIdentityResourcesAsync(search, page, pageSize);

            var identityResourcesDto = pagedList.ToModel();

            await AuditEventLogger.LogEventAsync(new IdentityResourcesRequestedEvent(identityResourcesDto));

            return(identityResourcesDto);
        }