Service Layer - how broad should it be, and should it also be on the local application?

Posted by BornToCode on Programmers See other posts from Programmers or by BornToCode
Published on 2012-09-11T21:07:07Z Indexed on 2012/09/12 21:50 UTC
Read the original article Hit count: 264

Background:

I need to build a desktop application with some operations (CRUD and more) (=winforms), I need to make another application which will re-use some of the functions of the main application (=webforms). I understood that using service layer is the best approach here. If I understood correctly the service should be calling the function on the BL layer (correct me if I'm wrong)

The dilemma:

  1. In my main winform UI - should I call the functions from the BL, or from the service? (please explain why)

  2. Should I create a service for every single function on the BL even if I need some of the functions only in one UI? for example - should I create services for all the CRUD operations, even though I need to re-use only update operation in the webform?

YOUR HELP IS MUCH APPRECIATED

© Programmers or respective owner

Related posts about design

Related posts about architecture