且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何在mvc 4中为api控制器创建控制器和视图页面

更新时间:2023-02-13 08:00:50

您不在控制器中使用这些方法。你的控制器提供那些方法!你必须编写决定这些方法的代码。



说真的,拿起一本关于MVC和Web API的书。
You don't use those methods in your controller. Your controller PROVIDES those methods! You have to write the code that determines what those methods are going to do.

Seriously, pick up a book on MVC and Web API.