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 9140367
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T09:30:26+00:00 2026-06-17T09:30:26+00:00

I am putting together an MVC 4 project that is likely to grow extensively

  • 0

I am putting together an MVC 4 project that is likely to grow extensively over the next few years. With the luxury and challenge of starting with a clean slate, I am trying to figure out the best practice for routing and organizing my controllers and views.

The MvcCodeRouting NuGet package is compelling and I plan on using it. However, I am not sure whether it would also be wise to utilize MVC Areas. It seems like MVC Areas are superfluous if MvcCodeRouting is used, but I am not sure if the extra bit of code organization offered by Areas is still desirable.

To illustrate what I mean, let’s take this fictitious grading application. It has the following high level areas:

  • Public portal
  • Authenticated student portal
  • Authenticated teacher portal
  • Authenticated administrator portal

Let’s say each portal will end up with 100 different views (let’s be ambitious!). If that scale is realized, MVC Areas seem like a nice way to partition the code, with MvcCodeRouting used within each Area. Or perhaps we should just organize the code anyway we like and let MvcCodeRouting do the heavy lifting.

So the Areas plus MvcCodeRouting design would look something like this (folder structure):

  • MvcWebProject
    • Areas
      • Admin
        • Controllers
        • Models
        • Views
      • Public
        • Controllers
        • Models
        • Views
      • Student
        • Controllers
        • Models
        • Views
      • Teacher
        • Controllers
        • Models
        • Views
    • Content
    • Controllers
    • Scripts
    • Views

And the MvcCodeRouting design without Areas would look something like this (folder structure):

  • MvcWebProject
    • Content
    • Controllers
      • Admin
      • Public
      • Student
      • Teacher
    • Models
      • Admin
      • Public
      • Student
      • Teacher
    • Scripts
    • Views
      • Admin
      • Public
      • Student
      • Teacher

Implicit in these designs is that MvcCodeRouting would be used to further organize classes via namespaces.

Of these too designs, which is the better approach? Why? Is there another approach that is even better? Is sharing resources among the portals easier or more difficult in one design or the other?

Note that this is just the front-end to a whole solution of code, so the whole service/domain/database behind this has its own specific architecture. For the purpose of this question, I am just interested how these different application areas should be architected in MVC.

  • 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-17T09:30:27+00:00Added an answer on June 17, 2026 at 9:30 am

    I wouldn’t use Areas just for the folder organization. Areas are completely unnecessary with MvcCodeRouting since you can use namespaces instead, and using both could be confusing.

    Let me suggest other folder structures you can use with MvcCodeRouting:

    Option #1

    • MvcWebProject
      • Admin
        • Controllers
        • Models
      • Public
        • Controllers
        • Models
      • Student
        • Controllers
        • Models
      • Teacher
        • Controllers
        • Models
      • Views
        • Admin
        • Public
        • Student
        • Teacher
      • Content
      • Scripts

    Option #2
    On this one you can put ViewModels in the same directory/namespace as the controller that uses it.

    • MvcWebProject
      • Controllers
        • Admin
        • Public
        • Student
        • Teacher
      • Views
        • Admin
        • Public
        • Student
        • Teacher
      • Content
      • Scripts

    The one thing that MvcCodeRouting doesn’t change is the location of the Views folder.

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

Sidebar

Related Questions

I'm putting together a new ASP.NET MVC project and have already designed and build
I'm putting together a simple test database to learn MVC with. I want to
I putting together a page that will display a set of stored values. I
I am putting together a fairly simple web app that uses user inputted data
I'm just putting together a little POC project, and I'm having some weird issues
I am putting together a technical analysis library that I hope others may use
I'm putting together my deployment plan for a major deployment next week (basically taking
I'm putting together a simple drop down that contains nested ul's. I want it
I am currently putting together some jQuery that will activate slideDown() when an element
I am putting together a simple Spring MVC with Web Flow app and I

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.