I seem to have duplicate rules too.
i.e. checking the client object in the user interface, and then matching the domain object to be verified.
However, I try to make my set of domain objects create a model, i.e. a web page that shows customer information, stock information, etc ... my model becomes a structure that contains a Customer object and a Stock object.
CompanyPageModel
Public client client {get;} public stock {get;}
then in my mvc project ViewData.Model.Customer.Name ViewData.Model.Stock.CurrentStocks
The separation "seems" more like working, but then it's good to have this separation of the UI / Domain model ... sorta like writing tests :)
Steve Jan 24 '09 at 15:02 2009-01-24 15:02
source share