Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9178419
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T17:32:49+00:00 2026-06-17T17:32:49+00:00

I am working on an administrative panel which, in short, provides CRUD functionality for

  • 0

I am working on an administrative panel which, in short, provides CRUD functionality for many classes/models such as Users. The way I have this implemented now is really simple; generate controller and views using a scaffolding template, then combine them all under a top level Admin directory.

The application has expanded a lot and the admin controller now encompasses the contents of 5 other controllers. The admin view folder has 20+ views. Additionally, the paths for the admin page look horrible!

/Admin/UserCreate
/Admin/GroupCreate
...

I think I can use routing to fix this. My thoughts are that it would be possible to keep each controller separated, but still be reflected as part of the admin page:

/Admin/User/Create
/Admin/Group/Create

This would make the path easier to read and make the directory structure of this application much more bearable.

1) Is it possible to utilize custom routing to essentially make “sub-controllers”? Is there a better way? I have never worked with routes before.

2) At some point, I plan on locking the admin controller off from users via a filter on that controller. If I change the routing as above, would my security filter still function properly? Do I need to apply the same filter to each of the “sub” controller?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T17:32:50+00:00Added an answer on June 17, 2026 at 5:32 pm

    This is achievable using MVC Areas.

    Using your above example, you would simply create a separate Admin area and put that controller/action structure within that, whilst still maintain your default area without the Admin prefix. 🙂

    As for your other question, you could use the Authorize attribute to handle security, or implement your own (deriving from ActionFilterAttribute) and decorate your secure methods with it.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Working with Reporting Services 2008 r2. So here's my issue: We have 5 reports
Working with JSF 2.0 (and Primefaces), is there a way to fire an ActionListener
I have a working ODBC connection to a Progress Open Edge 10.1C server (when
I have a webpage I am working on using asp.net mvc3. I am deploying
Earlier today, I decided to start working on a small control panel for administration
I found more source codes which are working like ping. My only problem with
I'm working on administrative application. I was thinking about making it fully AJAX-ed. Basically,
I am working on an SNS program which I plan to develop with JavaEE
I have been working on converting my websites session information over from flatfiles to
I'm working on a winform application which creates directories and copies files to the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.