Click here to Skip to main content
15,892,737 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have been building mvc apps for the last two years and most of the time I have one class library as a BLL, one DAL and DTO. However now I want to build different modules and have each module consumed as a RESTful service on the frontend. At the same time, I want to have a common library where I can hand authentication maybe and common objects. Sorry the question is so open ended but can anyone suggest how I can achieve this so I can keep each .net module separate and loosely coupled but consume a RESTful service once on the frontend?

What I have tried:

I have built different class libraries with different dlls but not sure how to structure modules so they loosely coupled and easy to change.
Posted
Updated 13-May-16 11:31am
Comments
Sergey Alexandrovich Kryukov 13-May-16 8:25am    
Are you going to use the RESTful services you want to introduce in one site, or many unrelated sites?
—SA
mou7866 13-May-16 9:28am    
thank you for the reply, the thing is I want to use restful services that for now will be on one website but later we want to build a mobile app and use the same services.
Sergey Alexandrovich Kryukov 13-May-16 17:29pm    
All, right, adding services for just one site would be pointless, but if you reuse gain will be considerable in future, it might pay off. I would postpone the migration to the services to later time though, closer to the time when you need to work on those mobile application, because things may change by that time. But the strategy is up to you.

Anyway, you question doesn't mean very certain. What are the problems? What do you mean "how"? Do you think you miss something?

—SA

1 solution

Please see my comments to the question. I cannot see any special problems there except possible problems specific to your application, which you did not share with us. You can start here: A Guide to Designing and Building RESTful Web Services with WCF 3.5[^].

—SA
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900