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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T10:12:27+00:00 2026-05-27T10:12:27+00:00

I’ve read a few articles about MVC but there’s one thing that isn’t clear

  • 0

I’ve read a few articles about MVC but there’s one thing that isn’t clear to me. What is the role of the model in practical term.

Does the model represent the business object?
Or is it just a class that help send information from the controller to the view?

Take for example two business class (data populated from the database)

Class Image
    Property FileName As String
    Property CreatedBy As User
End Class

Class User
    Property UserName as String
End Class

Will “Image” be the model or should I create a new class?

In the model, should I create a UserName property that will fetch it’s data from the User object?

Class ImageModel
    Property FileName As String
    Property CreatedBy As User

    ReadOnly Property UserName As String
        Get
            Return User.UserName
        End Get
    End Property
End Class
  • 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-05-27T10:12:27+00:00Added an answer on May 27, 2026 at 10:12 am

    There are many views on this, but in my experience, there are 2 major views of the Model:

    ViewModel

    This is a POCO that simply contains all the data necessary to display the View. The data is usually populated by the Controller.

    Fat Model, Skinny Controller

    The Model does the majority of the business-work. It contains and populates all the data that is needed by the View, and is used by the Controller to save data, etc.

    The beauty of MVC

    The beauty of MVC is that it’s OPEN! You can choose any type of model you want … you can put all your data into ViewState, into a Model, into a ViewModel that contains a bunch of Models, whatever. It’s really up to you. The Model, View, and Controller are blank canvases that can be used however you like.

    What I use

    My team has done a lot of MVC work, and we have tried many of these different methods. We finally decided that our favorite was the Fat Model, Skinny Controller paradigm.
    I believe that this pattern is the best at "keeping it simple" and "don’t repeat yourself", and it definitely maintains the "separation of concerns".
    Here’s how our code is organized:

    • Controllers
      • Handles everything that pertains to HTTP requests – redirects, authentication, web safety, encoding, etc.
      • Gives all "input" to a Model, and gives the Model to the view. Does NOT access Business or Data layers.
    • Views
      • Handles all HTML and JSON generation
      • Only accesses data from the strongly-typed Model
    • Models
      • Responsible for making all updates, calling Business and Data layers, loading all data
      • Handles all validation and errors, and returns these to the Controller
      • Contains properties of all data that is required for the View, and populates itself

    Even though this sounds like a generic principle of MVC, it quickly becomes obvious that MVC does not require these principles, which is why many projects use other principles.

    Example

    Here’s an example Model. The Controller creates it, it populates itself, and the Controller passes it to the View.

    public class UsersModel
    {
        protected UserBusiness userBusiness = new UserBusiness();
        
        public UsersModel(string editUserName)
        {
            // Load all users:
            this.Users = userBusiness.GetAllUsers();
            
            // Load the user to be edited:
            this.EditUser = (editUserName == null) ? null : userBusiness.GetUser(editUserName);
        }
        
        public List<User> Users { get; private set;}
        public User EditUser { get; private set; }
    }
    

    All the "user business logic" in this case is in a different project (our "Business Layer"), because we have a large system. But smaller projects don’t require this … the Model can contain business logic, and even data-access code.

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

Sidebar

Related Questions

I am reading a book about Javascript and jQuery and using one of the
I have a French site that I want to parse, but am running into
I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
link Im having trouble converting the html entites into html characters, (&# 8217;) i
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I want to count how many characters a certain string has in PHP, but
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
I've got a string that has curly quotes in it. I'd like to replace
Seemingly simple, but I cannot find anything relevant on the web. What is the
I am doing a simple coin flipping experiment for class that involves flipping a

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.