Nels_P_Olsen wrote:
From what I've read about ideally keeping things stateless, and from what others on my design team are saying, any code that modifies data must also submit that data back to the data access layer (if there is one, else to NHibernate directly) to be saved, in the very same method.
Just because the web is stateless doesn't mean you can't maintain state. You can save your business object in session or viewstate and also maintain it's state (new/updated/etc). This would persist thought several postbacks if needed and only submit to the DAL when the business transaction is completed.
Otherwise, how would you keep the business transaction ATOMIC if you are submitting to the DAL on every modification or state change?
BOb