/// <summary>
        /// Logs the API message.
        /// </summary>
        /// <param name="message">The message.</param>
        public void LogApiMessage(ApiMessage message)
        {
            try
            {
                message.CheckNullObject(nameof(message));

                using (var controller = new ApiMessageAccessController(_sqlConnectionString))
                {
                    controller.LogApiMessage(message);
                }
            }
            catch (Exception ex)
            {
                throw ex.Handle(new { message });
            }
        }