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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T16:12:33+00:00 2026-06-07T16:12:33+00:00

So MVC is split into the Model View Controller layer I thought I had

  • 0

So MVC is split into the

  • Model
  • View
  • Controller layer

I thought I had a grasp on what each layer does after ready many many pages but I’m still stumped about one area, which is if something should go in the model or the controller.

I understand that Data-storage classes should go in the Controller
I understand that UI modifiers (ie pulling the right model) should go in the Controller

But what about model modifiers. So for example if we take the software shopping cart approach lets say someone clicks on the checkout button, fills out their payment details and its all approved, a postback happens to deal with this.

The postback object needs to

  1. Add an entry to a database table to say allow X user download Y software
  2. Send a receipt to the user
  3. Log the purchase

Normally (on a non MVC) approach I’d create a class to deal with Access-generation of the software table which would call EF to store info. I would have a secondary class to send out notifications and a third class to log information.

Should I still have these classes in MVC and if so would they be classes as the controller or the model?

  • 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-07T16:12:36+00:00Added an answer on June 7, 2026 at 4:12 pm

    All three of the points that you have defined above form part of the model of your application; the controller should be dealing only with orchestration between the model and the UI representation (the view) presented to the user.

    Adhering to SOLID principles, absolutely would agree that we are dealing with (at least) three separate components to:

    1. persist the data about user x downloading software y
    2. issuing receipts
    3. logging

    There are many ways that you might approach organising the architecture and components to do this. One way would be to have an application specific component/service that depends on these three components and uses them to carry out the operations listed. Then the controller takes a dependency on this component only.

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

Sidebar

Related Questions

We want to split our large asp.net mvc web application into multiple Visual Studio
Using ASP.NET MVC when I create my model, then a controller based on the
How should one split up the controllers in an ASP.NET MVC site? For example,
MVC use action attributes to map the same view for http get or post:
Spring MVC uses a DispatcherServlet to route control to an appropriate Controller. But where
For example, a simple MVC type system: /api/class/method rewritten into PHP variables using .htaccess/nginx.conf
I have a MVC web site that worked well, until I moved it into
Due to security reasons our legacy application is split into 2 web applications, one
My MVC solution is built with a core and a client split to it.
MVC Newbie here. I want to get User confirmation before controller action (update 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.