I have a WebPage Controller that handles all my public side of things on the website.
I have an Enquiry table to insert details of information typed in a contact form.
On the contact page it posts to the WebPage Controller with the contact form information.
How do I check that the form collection validates against the expected Enquiry table? My model has DataAnnotations if that helps.
Thanks
UPDATE: I realised I can do a TryUpdateModel but to put the information into my object but how do I passback the validation information eg/they didn't type in their name