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); }
public async Task Handle(RenameAccountCommand notification) { var account = await _accountGateway.GetAccount(notification.AccountHref); await _accountRepository.SaveAccount(account); }