Click here to Skip to main content
15,887,477 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,
I am learning mvc4 using 3 tier architecture . I am creating a simple application with visual studio 2012 and sql server 2012.
I have created a project add in this project i have added two more project which are DAL (data access layer) & BLL (business logic layer).
now i am confused which code should I write in which part.
where should i use model class, controllers and specially what code should i write in BLL.

Plz tell me what to do.
Thankyou
Posted

1 solution

The presentation layer is your MVC project. MVC includes models and viewmodels, which can make this sort of thing confused. In theory, your business layer handles all the business logic, and the database handles getting data from the DB and storing it there.

I'm not sure how far I'd go with n tiered in MVC, although I would seek to write a data layer, I think the business rules will be hard to factor out, unless your models also come from your business layer ( which they can do, of course )
 
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