1.0 KiB
1.0 KiB
title | author | description | manager | ms.author | ms.date | ms.prod | ms.technology | ms.topic | uid |
---|---|---|---|---|---|---|---|---|---|
Adding a controller to an ASP.NET Core MVC app | rick-anderson | How to add a controller to a basic ASP.NET Core MVC app using Visual Studio of Mac | wpickett | riande | 06/28/2017 | asp.net-core | aspnet | article | tutorials/first-mvc-app-mac/adding-controller |
Adding a controller to an ASP.NET Core MVC app with Visual Studio for Mac
[!INCLUDEadding-controller]
Add a controller
In Solution Explorer, right-click Controllers > Add > New File.
Select ASP.NET Core and MVC Controller Class.
Name the controller HelloWorldController.
[!INCLUDEadding-controller2]