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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T07:59:37+00:00 2026-06-17T07:59:37+00:00

I have a question about the ‘Models’ folder or layer in a ASP.NET MVC

  • 0

I have a question about the ‘Models’ folder or layer in a ASP.NET MVC or Web API application (I’m using Web API, but should apply to both based on what I’m asking). See in all the basic examples on trying to use MVC or Web API as the entire architecture, the ‘Models’ folder is typically populated with classes like Customer, Orders, Address, etc.

However, all of my entities have been extracted out to their own domain/business layer and therefore I have no model classes in the UI layer.

Now I still need ViewModels to be the final shaped data for my MVC apps, but regardless for MVC where I need views or Web API where the injected repository returns the shaped data without a view, I still have no need for the ‘Models’ folder in my UI layer when porting out those entities to another separate layer.

Is this OK? In the case of using MVC where I still may not have any Model classes in the UI layer, does the ‘Models’ folder need to rather contain my ViewModels as discussed here? Fat model / thin controller vs. Service layer I think leaving the ‘Models’ folder empty and creating a separate ‘ViewModels’ folder makes more sense to show the Models exist, but are in another layer.

Help is appreciated on each question within, thanks!

  • 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-17T07:59:38+00:00Added an answer on June 17, 2026 at 7:59 am

    You’re doing it right. In a non-trivial MVC application, your Models folder would typically contain only ViewModels. If your ViewModels are in another layer, that’s also fine.

    While ASP.NET MVC is an opinionated framework, and certain conventions must be followed, the location of your models is not one of them. Moving your views, however, is another story.

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

Sidebar

Related Questions

Have a question about the design/usage of asp.net mvc here. In the html helper
I have question about this plugin system: .NET 4.0 ASP.NET MVC 3 plug-in architecture
I have question about managing transaction in asp.net application. For example i have application
I'm learning asp.net. I have question about example buttons I can use two types
I have question about benefit of using areas and necessity of them. I see
I have question about how to correctly write my application. I would like to
I have question about sending emails from MVC3 application. I already read for exmple
I have question about the need of using @configurable . I have gone through
I have question about parsing in Html helper : I have sth like: @foreach
I have question about clean thory in Python. When: @decorator_func def func(bla, alba): pass

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.