932 B
932 B
title | author | description | manager | ms.author | ms.date | ms.prod | ms.technology | ms.topic | uid |
---|---|---|---|---|---|---|---|---|---|
Add a controller to an ASP.NET Core app | rick-anderson | Learn how to add a controller to a simple ASP.NET Core MVC app. | wpickett | riande | 02/28/2017 | asp.net-core | aspnet | get-started-article | tutorials/first-mvc-app-xplat/adding-controller |
Add a controller to an ASP.NET Core app
[!INCLUDE adding-controller]
-
In VS Code, select the EXPLORER icon and then control-click (right-click) Controllers > New File and name the new file HelloWorldController.cs.
[!INCLUDE adding-controller2]
[!div class="step-by-step"] Previous - Add a controller Next - Add a view