1012 B
1012 B
title | author | description | ms.author | ms.date | uid |
---|---|---|---|---|---|
Add a controller to an ASP.NET Core MVC app with Visual Studio for Mac | rick-anderson | How to add a controller to a basic ASP.NET Core MVC app using Visual Studio of Mac | riande | 06/28/2017 | tutorials/first-mvc-app-mac/adding-controller |
Add a controller to an ASP.NET Core MVC app with Visual Studio for Mac
[!INCLUDE adding-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.
[!INCLUDE adding-controller2]