This articles explains how to create a custom attribute in ASP.NET MVC that will validate the customer email id and mobile number uniqueness while inserting a new customer in the database.