Esempio n. 1
0
        public async Task <IActionResult> PostWithManualValidation2([FromBody][CustomizeValidator(Skip = true)] Person person)
        {
            var validator = new PersonValidator();
            await validator.ValidateAndThrowAsync(person);

            return(await new ValueTask <IActionResult>(Ok()));
        }