I am developing a RESTful web service by WebAPI, I need to overload one of my methods, for example:
[HttpGet]
public void Send(string body, string phoneNumber)
and
[HttpGet]
public void Send(string body, [FromUri] List<string> phoneNumber)
When I call this service by using this address :
http://webservice.com/api/send?body=Hello&phoneNumber=1345456,123123
the first method is called but I prefer to call the second method by using this address:
http://webservice.com/api/send?body=Hello&phoneNumber=134556&phoneNumber=123123
but the first method is called again!
Is it possible to have overload for methods in WebAPI?