public IActionResult OnPost(PostValidationSample03Model validationModel)
        {
            if (validationModel.Name?.Length < 2)
            {
                var propertyKey = $"{nameof(validationModel)}.{nameof(PostValidationSample03Model.Name)}";
                ModelState[propertyKey].Errors.Clear();
                ModelState.AddModelError(propertyKey, "Name MinimumLength is 2");
            }

            this.ValidationModel = validationModel;
            return(Page());
        }
 public void OnGet()
 {
     ValidationModel = new PostValidationSample03Model();
 }