What controllers should be added to the Asp.net MVC administrator backend?
天蓬老师
天蓬老师 2017-05-16 17:06:20
0
1
566

There are many functions in the background
for example:

1. Article management
2. Video management
3. Download management
4. Advanced settings
5. User management

etc

Use a controller?

AdminController

still

1、ArticleController
2. VideoController
3. DownController
4. AdvController
5. UserController

天蓬老师
天蓬老师

欢迎选择我的课程,让我们一起见证您的进步~~

reply all(1)
某草草

Prefer using multiple controllers instead of covering everything with one AdminController.
If you want to distinguish the background management part, you can consider designing a URL like this: /Admin/Articel/List. The routing rules that need to be matched here are:

    routes.MapRoute(
        name: "AdminModule",
        url: "Admin/{controller}/{action}",
        defaults: new { controller = "Article", action = "List" }
    );
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!