Click here to Skip to main content
15,897,273 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Am writing a service in webapi. i want to integrate models to my business layer through that i want to access my data. can anybody give me the solution for this. am using three tier architecture.
Posted
Updated 14-Jan-15 0:40am
v2

1 solution

Three tear architecture is good to follow, but depends how big is your project.
if it is service project and going to be used internally, just call data access layer from your api layer.

the best practice would be to keep business layer, api layer, data layer and entity layer seperately.
Let me know if you need more understanding.
 
Share this answer
 
Comments
Naveen Kumar 16-Jan-15 0:35am    
Thanks for your suggestion but am looking for the solution to communicate models in api with business logic data. in business logic i have policies i want to communicate those policies through models because event will start from the model itself

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