我有以下路线网址:-
www.domanname.com/subroute/GetInfo?param1=somestring¶m2=somestring
我在webapi的工作是:-
public class HomeController : ApiController
{
public object GetInfo(string param1,string param2)
{}
}
申请路线:-
[RoutePrefix("subroute")]
public class HomeController : ApiController
{