Exercise 3: Using IValidatableObject Custom Validation
In this exercise, you will learn how to implement a custom server-side validation using ASP.NET4 IValidatableObject Interface. In the previous exercises you worked with validation attributes to perform custom validation of several attributes. Now you will use IValidatableObject to prevent the insertion of repeated albums, performing an extra validation at server side that will run after attribute validation is performed.
Task 1 – Implementing IValidatableObject Validation Method
Task 2 – Running the Application
In this task, you will try to create a repeated album to test the validation.