Thanks Jonathan.
Significantly I have to decorate my DTO with attributes so that the
form renders automatically via the InputBuilders. However I accept
your point, and perhaps all I need to do is adopt a convention such
that DTO properties have the same name as domain object properties -
that way the validation messages from the domain object validation can
be used directly by the form when rendering the DTO information. Any
DTO specific or manipulated properties I can then simply add a line or
2 of custom validation in the controller action.
Does this sound about right??
On Nov 13, 11:31 pm, Jonathan Parker <
jonathanparkerem...@gmail.com>
wrote:
> I would suggest that the DTO should be quite dumb as well as flat and thus
> not contain any validation.
>