I am currently doing something similar to the following on every save() I do.
I trap for broken rules and bubble them up with one custom exception class, and throw exceptions for the other results. Because of this I wind up with an ugly Case statement for every save. Is there any reason not to move this logic to the ErrorSaving event of the business object's themselves to centralize this or is this just the best way to do it?
Thanks!
Clay
I was just saying that when you create a new business object from our template, it will inherit from BusinessLayer, so you will need to change it so that it inherits from your class, not BusinessLayer. The base class that you create will be excactly like you mentioned... it's a basic business object (that itself will inherit from BusinessLayer).