Skip to content

About

First ASP.NET MVC app in C#: controllers, Razor views, a GET/POST form (time calculator) and list rendering.

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

3 Commits

Folders and files

Repository files navigation

My first ASP.NET MVC web app

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.

Pages

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

Project structure

WebApplication MVC/
├── App_Start/RouteConfig.cs
├── Controllers/   Home, Calculator, Rockbands
├── Models/        HomeModel
└── Views/         Razor views for each controller

Tech

C# · ASP.NET MVC 5 · Razor · .NET Framework

Running it

Open WebApplication MVC.sln in Visual Studio (Windows), restore NuGet packages and press F5.

About

First ASP.NET MVC app in C#: controllers, Razor views, a GET/POST form (time calculator) and list rendering.

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages