I have a WebApiController as follows:
public newController:webapicontroller
{
public void method1()
public void method2()
}
When I call the URL:
from the controller, which method will it hit (method1 or method2)?. How can I write a method which just takes 2 parameters?
And is there any significance if I prefix the method names with GET and POST as GETmethod1?
Yes, from what I understand, the method that started with the http verb (like GetX) and has the same number of parameters as the number of parameters in the URL is picked up.