Oh, if there’s a data type designed for it, I’d just [ValidateNotNull()] and have that be the parameter type. No need to mess with complex validations at that point.
Thanks for this guys, amazing whats out on the net
So anyway i’ve added the regex for validate pattern which works perfectly, but can how can i get the error message to say it needs to be in email format rather than
The argument “name” does not match the “^\w+([-+.']\w+)@\w+([-.]\w+).\w+([-.]\w+)*$” pattern