public async Task Handle(AccountAccessConsentAddedEvent evt, CancellationToken cancellationToken)
        {
            var result = AccountAccessConsentAggregate.Build(new List <DomainEvent>
            {
                evt
            });
            await _accountAccessConsentRepository.Add(result, cancellationToken);

            await _accountAccessConsentRepository.SaveChanges(cancellationToken);
        }
        protected override async Task ConfirmPermissions(IEnumerable <BCAuthorizePermission> permissions, CancellationToken cancellationToken)
        {
            foreach (var grp in permissions.GroupBy(p => p.ConsentId))
            {
                var accountAccessConsent = await _accountAccessConsentRepository.Get(grp.Key, cancellationToken);

                accountAccessConsent.Confirm(grp.Select(p => p.PermissionId));
                await _accountAccessConsentRepository.Update(accountAccessConsent, cancellationToken);
            }

            await _accountAccessConsentRepository.SaveChanges(cancellationToken);
        }