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); }
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); }