search

Home  >  Q&A  >  body text

What controllers should be added to the Asp.net MVC administrator backend?

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

天蓬老师天蓬老师2799 days ago633

reply all(1)I'll reply

  • 某草草

    某草草2017-05-16 17:08:20

    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" }
        );
    

    reply
    0
  • Cancelreply