AspNetCore.Docs/aspnetcore/tutorials/first-mvc-app-xplat/adding-controller.md

958 B

title author description keywords ms.author manager ms.date ms.topic ms.assetid ms.technology ms.prod uid
Adding a controller rick-anderson How to add a controller to a simple ASP.NET Core MVC app ASP.NET Core,MVC riande wpickett 02/28/2017 get-started-article e04b6665-1638-4d99-1636-d666c4634666 aspnet asp.net-core tutorials/first-mvc-app-xplat/adding-controller

Adding a controller to a ASP.NET Core MVC app with Visual Studio Code

By Rick Anderson

[!INCLUDEadding-controller]

  • In VS Code, select the EXPLORER icon and then control-click (right-click) Controllers > New File

Contextual menu

[!INCLUDEadding-controller2]

[!div class="step-by-step"] Previous - Add a controller Next - Add a view