Aicloud E-Learning

Guided Notes

Introduction to ASP.NET

The MVC pattern and how a request flows through it.

ASP.NET is Microsoft's web framework, built on .NET and typically written in C#. It follows the Model-View-Controller (MVC) pattern: models hold data, views render HTML, controllers handle incoming requests and decide what to do.

A controller action is just a C# method that returns a result — often a View() call that renders a Razor template, or a JSON response for an API endpoint.

Routing maps incoming URLs to a specific controller and action, either through convention (`/Products/Details/5` → ProductsController.Details(5)) or explicit attribute routing.