I have an MVC 3 application. I have a model called UserModel that contains an email field, validated for unique with RemoteAttribute. I want to use UserModel on 2 Views - EditU
A good way to solve this is to pass the usermodel id as an adittional field into the remote validation method. This will be blank or null on create but populated on edit. You can then add logic to the remote validation method to check the id.
See example below
[Remote("ValidationMethod", "UserModel", AdditionalFields = "Id", ErrorMessage = "Error message")]