/dotnet-mvc

Basic app from 'dotnet new mvc'.

Primary LanguageHTML

.NET MVC

Basic app from 'dotnet new mvc'.

Links

Source

New MVC

Create a project folder.

From inside the project folder, open PowerShell here as Administrator.

Run:

dotnet new mvc

Add additional files:

Run

dotnet run

CTRL-C in the window will shutdown your service. Restart after making changes.

Learn

Learn how controller actions and views are configured and how to modify the navigation.

Modify the Home Controller:

  1. Add a new action to the Home Controller (.e.g, Welcome)
  2. Add a new associated view.
  3. Add a new menu option to route you to your new action and show your new view.

Add a new controller:

  1. Add a new controller.
  2. Add an action to your new controller that replies with text.
  3. Add an action to your new controller that replies with JSON.
  4. Add an action to your new controller that replies with HTML.
  5. Add an action to your new controller that replies with a Razor view.
  6. Add new menu options to access your new content.