public async Task WriteAudit(EmployerUsersAuditMessage message)
        {
            var auditMessage = _messageFactory.Build();

            auditMessage.AffectedEntity    = message.AffectedEntity;
            auditMessage.Category          = message.Category;
            auditMessage.Description       = message.Description;
            auditMessage.ChangedProperties = message.ChangedProperties;
            auditMessage.RelatedEntities   = message.RelatedEntities;

            await _client.Audit(auditMessage);
        }
        public async Task SendAuditMessage(EasAuditMessage message)
        {
            try
            {
                var auditMessage = _factory.Build();
                auditMessage.Category          = message.Category;
                auditMessage.Description       = message.Description;
                auditMessage.ChangedProperties = message.ChangedProperties;
                auditMessage.RelatedEntities   = message.RelatedEntities;
                auditMessage.AffectedEntity    = message.AffectedEntity;

                await _auditApiClient.Audit(auditMessage);
            }
            catch (Exception exception)
            {
                _logger.Error(exception, "An error occurred when calling the audit service.");
            }
        }