I have the folowing URL:
http://localhost:7975/test?parameter01=X
In my model, parameter01
is a List<int?>
. If a non-integer value (e.g., a string
) is passed to this parameter, the model binding process sets this value to null.
How do I intercept this as early as possible in the pipeline so I can return a HTTP status and description without handling this condition in the controller action?