Is there any way to remove model validation for some properties in a Model in ASP.Net MVC6.
I came across this post Is there a strongly-named way to remove ModelState errors in ASP.NET MVC
which suggests using, ModelBindingHelper.ClearValidationStateForModel(Type, ModelStateDictionary, IModelMetadataProvider, string).
But I am unable to find any further help on this.
Can anyone please suggest a working example of removing a model property using ClearValidationStateForModel?