A small ASP.NET MVC application written while learning the Model–View–Controller pattern in C#. It covers routing, controllers, Razor views and handling form input.
| Route | Controller | What it does |
|---|---|---|
/ |
HomeController |
Start page rendered from a simple model |
/Calculator/TimeCalculator |
CalculatorController |
A form (GET) that takes hours, minutes and seconds, and a result page (POST) that converts them with TimeSpan |
/Rockbands |
RockbandsController |
Builds a list of classic rock bands and renders it in a view |
WebApplication MVC/
├── App_Start/RouteConfig.cs
├── Controllers/ Home, Calculator, Rockbands
├── Models/ HomeModel
└── Views/ Razor views for each controller
C# · ASP.NET MVC 5 · Razor · .NET Framework
Open WebApplication MVC.sln in Visual Studio (Windows), restore NuGet packages and press F5.