I Have a MVC Project with a Model named Contact, in create view how can I Check if the new value is exist avoid to register it, is there any Attribute to check it Automatically like [Required] Validator? something like [NoRepeated] ??
I Have a MVC Project with a Model named Contact, in create view how
Share
I think you should make the DB column a unique one. And when duplicates are inserted it will throw an exception . Which you can catch and show to the user as an error.