For instance, I have an Employee view model. When creating an employee, I want to validate the username to make sure it doesn\'t exist.
public class Employee
You can do that by extending the Attribute class calling it ValidateDuplicate. I'd avoid doing it this way because its just another place where you potentially have to make a call to a database.