MVC is one of three ASP.NET programming patterns.

MVC is a pattern for creating Web applications using MVC (Model View Controller model-view-controller) design:

Model (model) represents the core of the application (such as a database record list).

View displays data (database records).

Controller handles input (writes database records).

MVC pattern provides full control over HTML, CSS and JavaScript simultaneously.

MVC - Controller syntax

The Controllers folder contains control classes responsible for handling user input and responses.

MVC requires that the names of all controller files end with "Controller".

MVC - Controller example

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
namespace MvcDemo.Controllers
{
public class HomeController : Controller
{
public ActionResult Index()
{return View();}
public ActionResult About()
{return View();}
}
}