This web site illustrates how to add ModelMetadataType attribute and validate the models during model binding. It also show how to validate models using TryValidateModel API.