简体   繁体   中英

Design a CMS site using ASP.NET MVC 5

I'm building a site which mainly has articles and I'm using ASP.NET MVC 5 framework. I want to have an admin page where I can add, edit these article content.

I'm having a problem with designing the structure of this project. I'm thinking of having a controller class called ' adminController ', where I handle all the requests related to content management.

Is that approach conceptually correct in ASP.NET MVC ? Because If this was an ASP web forms project, I would simply have two different projects called Public and Admin in a single solution.

I'm quite new to ASP.NET MVC framework and I'd appreciate any help.

You can do 2 separate projects and can do one.

Since ASP.NET MVC 4 whe have Areas and i suggest you to use it if you want structure your project and separate admin logic from public.

Here is a tutorial that you can check that explain whar areas is and how you can work with them.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM