Exemplo n.º 1
0
        protected override async Task HandleCore(RemoveAccountLegalEntityCommand message)
        {
            try
            {
                await _accountLegalEntityRepository.RemoveAccountLegalEntity(message.Id);

                _logger.Info($"Account Legal Entity {message.Id} removed");
            }
            catch (Exception exception)
            {
                _logger.Error(exception, "Could not remove Account Legal Entity");
                throw;
            }
        }