Transmits multiple parameters and obtains the data of the Web API.
It is very interesting to learn about Web APIs recently. The default route does not need to specify the Action name when obtaining data.
Another thought is that after learning asp.net MVC and adding jQuery, Insus. NET has slowly moved away from ASP. NET, remembering the handy Web control ......
The first two "ASP. net mvc Web Api practice" http://www.cnblogs.com/insus/p/4334316.html without parameters to obtain data. While the "Html Web page using jQuery to pass Parameters and get Web API data" http://www.cnblogs.com/insus/p/4337409.html is to send a single parameter to Web Api to obtain data.
In this article, Insus. NET wants to practice method overloading in Web APIs. The Get method is used to input multiple parameters to obtain data. In this case, the three articles are type: "GET ".
In the Api controller, create an Action with multiple parameters. You can check the Code #31 below.
Create an html webpage, or use jQuery to upload and obtain data.
Add two text boxes to allow users to transfer multiple parameters to call the multi-parameter data method of Web Api.
Demo: