I have a client -> service -> server, architecture and I want to introduce validation.
I have dtos being passed over the service and get transformed into domain objects on the server.
Say if a user enters in a value and I need to check this value against the database to see if it exists and if so return an error and highlight the field, how would I best go about this?