I am having a problem while calling overloaded C# function through jquery post method.
I have two functions in c#
string func(string a)
string func(string a, string b)
Now when i call function which has one parameter in jquery like this
var url = '<%= Url.Action("func", "Team") %>';
$.post(url, { a: "test" }, function (data) {
});
It gives me this error
The current request for action 'func' on controller type 'TeamController' is
ambiguous between the following action methods
I want to know how can i call these overloaded functions. Im using Asp.Net MVC 2 with C#