Hi Mark!
I've found that custom model validation attributes sometimes override IsValid method with two parameters: object valueandValidationContext validationContext. That's why I decided to add following improvements in ValidateActionParametersAttribute.
Hi Mark! I've found that custom model validation attributes sometimes override IsValid method with two parameters:
object value
andValidationContext validationContext
. That's why I decided to add following improvements in ValidateActionParametersAttribute.Hope you'll find it helpful.
Anyway, since ASP.Net Core 2.1 we will no longer need this attribute: https://andrewlock.net/coming-in-asp-net-core-2-1-top-level-mvc-parameter-validation/