コード例 #1
0
        public async Task Handle(CreateAccountCommand notification)
        {
            var account = await _accountGateway.GetAccount(notification.AccountHref);

            await _accountRepository.SaveAccount(account);

            await SaveLegalEntities(account.LegalEntities);
            await SavePayeSchemes(account.PayeSchemes);
        }
コード例 #2
0
        public async Task Handle(RenameAccountCommand notification)
        {
            var account = await _accountGateway.GetAccount(notification.AccountHref);

            await _accountRepository.SaveAccount(account);
        }