"
ASP.NET (snapshot 2017) Microsoft documentation and samples

Adding a controller to an ASP.NET Core MVC app with Visual Studio for Mac

By Rick Anderson

[!INCLUDEadding-controller]

Add a controller

In Solution Explorer, right-click Controllers > Add > New File.

Contextual menu
Contextual menu

Select ASP.NET Core and MVC Controller Class.

Name the controller HelloWorldController.

Add MVC controller and name it
Add MVC controller and name it

[!INCLUDEadding-controller2]

Previous Next



Comments ( )
Link to this page: //www.vb-net.com/AspNet-DocAndSamples-2017/aspnetcore/tutorials/first-mvc-app-mac/adding-controller.htm
< THANKS ME>