Where would you place the business logic?

Thanks a lot for this excellent example application!

By the looks of the source and the documentation, TaskVision doesn't seem to have a real business layer. Instead, you have webservices that call the DAL with almost no logic in between. I understand that for this particular application, there is not much business logic to talk about, but consider if this was an enterprise application! If there is a lot of business logic, shouldn't you place it serverside?

Consider that you want to build a Pocket PC application that works in the same way as the current client. With this solution, you'd have to rebuild the entire business logic again on the Pocket PC application.

Questions:
- What (if anything) would you have done differently if this were an enterprise application, with a lot of business logic? And why?

Thanks,
//Simon

[850 byte] By [codefund.com] at [2008-2-12]
# 1
Hi Sire,

Yes, I think you should place the business logic on the server! It could be done using a facade component.

In that case the accessed Web Service would act as a facade component and would then access the business logic which would be hidden in different component(s) running on the server. Therefore, I'd create instances of the business logic classes in the corresponding WebService.

Hope you're sharing my ideas...

Olaf

codefund.com at 2007-9-8 > top of Msdn Tech,Windows Forms,Windows Forms Sample Applications...