private ExceptionResponse GetCompleteException(List <DomainNotification> validationErrors)
        {
            var response = new ExceptionResponse
            {
                Error = new Errors
                {
                    Message = validationErrors,
                    Code    = HttpStatusCode.BadRequest.ToString()
                }
            };

            return(response);
        }
        private ExceptionResponse GetCompleteException(Exception exception)
        {
            var response = new ExceptionResponse
            {
                Error = new Errors
                {
                    Message = exception.Message,
                    Code    = HttpStatusCode.BadRequest.ToString()
                },
                InnerError = exception.InnerException != null
                    ? GetCompleteException(exception.InnerException)
                    : default(ExceptionResponse)
            };

            return(response);
        }