public FluentValidationModelValidator(ModelMetadata metadata, ControllerContext controllerContext, IValidator validator) : base(metadata, controllerContext) { this.validator = validator; this.customizations = CustomizeValidatorAttribute.GetFromControllerContext(controllerContext) ?? new CustomizeValidatorAttribute(); }
public FluentValidationModelValidator(ModelMetadata metadata, ControllerContext controllerContext, IValidator validator) : base(metadata, controllerContext) { _validator = validator; _customizations = CustomizeValidatorAttribute.GetFromControllerContext(controllerContext) ?? new CustomizeValidatorAttribute(); }
public FluentValidationHttpModelValidator( //ModelMetadata metadata, IEnumerable<ModelValidatorProvider> validatorProviders, IValidator validator) : base(validatorProviders) { _validator = validator; _customizations = new CustomizeValidatorAttribute(); }