I’ve an application that offers its Business Layer through a Service Layer developed with WCF.
What I’m thinking about is: this service layer offers operational method like Create, Update and so on. These operation then reroute these calls to the Business Layer. The question is: suppose that one of these call doesn’t accept a null input value (like: Create a null object), where is the best place to perform the check? My personal answer is in both the places (service and business) as I can guarantee the reuse of the Business Layer without using the Service Layer and viceversa.
Am I right?
Thanks
Marco
This is important because you may use this library at many places for different purposes.
In your application presentation layer, if you’re consuming a library code and you’re aware about the possible exceptions then do catch them with try/catch.