If my application has an Application Layer which exposes services that can be called by my Presentation Layer and these Application services return domain objects(not using DTOs) to the Presentation Layer, if a user changes the state of the domain object how do I then determine what has been changed by the user when it is passed back down to the Application Layer for updating??
So how does the Application Layer determine what changes that have been made to the domain object by the UI so that it can
- Begin a UnitOfWork
- Retrieve the domain object from repository
- Apply the changes to the domain object
- Commit the UnitOfWork