ASP.NET Core MVC — Introduction

Hey fellows, In this article series I’m going to cover the following areas in the Web development with C#, ASP .NET Core MVC, MVVM Tech Stack.

So, In this section, we will talk about MVC architecture at a high level.

What is MVC mean?

The Model-View-Controller (MVC) is an architectural design pattern that divides a software application/system into three main logical components,

Each of these components is made to control and manage specific development domains in an application.

MVC is one of the most frequently used industry-standard web development frameworks to create scalable and extensible projects.

Model

In basic C# ASP .NET Core Web applications, it acts as a C# class which holds application data as a Data Blueprint. It also manages the Database operations and relations.

Ex: Buyer, Seller, Admin User, Categories Classes in e-commerce Applications

So Basically, The Model component corresponds to all the data-related logic that the user works with.

View

The view is a component that displays the user interface. In C#, It’s the CSHTML file (Razor Views). This handles the app’s data presentation and user interaction

In view, you can trigger/notify the events that get handled by the controllers.

Controller

A controller controls the workflow that a user interacts with MVC application*.* A controller contains the flow control logic for an ASP.NET MVC application. A controller determines what response to send back to a user when a user makes a browser request.

According to some folks,

Controllers are the brain of an ASP.NET Core application. They process incoming requests, perform operations on data provided through Models, and select Views to render on the browser.

Controllers are stored inside the Controllers folder at the root of the app.

Next Article, we will talk about these 3 main sections with C# examples.

--

--

Game Dev | Engineering Undergraduate Student at Sri Lanka Technological Campus.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Nawodya Ishan

Game Dev | Engineering Undergraduate Student at Sri Lanka Technological Campus.