public IHttpActionResult LogWebRequestV1(WebRequestLogRequest request)
        {
            if (!request.IsValid)
            {
                return(BadRequest("Invalid request provided, please check your request body."));
            }

            var response = _loggingService.LogWebRequest(request);

            return(Ok(response));
        }
Beispiel #2
0
        public WebRequestLogResponse LogWebRequest(WebRequestLogRequest request)
        {
            var response = new WebRequestLogResponse()
            {
                Request = request,
            };

            GetWebRequestLookupValues(request.WebRequest);

            _logRepository.LogWebRequest(request.WebRequest);

            return(response);
        }