Ejemplo n.º 1
0
        public async System.Threading.Tasks.Task <JsonResult> OnGetValidateAsync(string baseUrl, string id)
        {
            ServiceDirectory.Common.Results.ValidationResult result = await APIValidator.Validate(baseUrl, id, new APIValidatorSettings()
            {
                SamplePages = true
            });

            if (result.GetException() != null)
            {
                _logger.LogError(result.GetException(), result.Error);
            }


            return(new JsonResult(result));
        }