Here, you're creating a home controller so that your route will activate properly.
在这里,您正在创建主控制器以便正确激活您的路径。
Open a text editor, and create a simple controller called Home.
打开文本编辑器,并创建一个名为Home的简单控制器。
The class will serve as the controller for the "home page" of your application.
这个类充当应用程序“主页”的控制器。
To test the new controller, start the application and request the /Home/Index URL.
为了测试这个新的控制器,启动应用程序,并请求/Home/Index。
To test the new controller, start the application and request the /Home/Index URL.
为了测试这个新的控制器,启动应用程序,并请求/Home/Index。
应用推荐