ASP.NET MVC : method not found when two controllers has the same method name
I am writing an
ASP.NET MVC app. I have two controllers, Controller1 and Controller2. I have a method called SearchBySSN in my Controller1. I am calling this method via Ajax from the view:
$.ajax(
{
type: "POST",
data: model,
headers: {
"RequestVerificationToken":
$('input:hidden[name="__RequestVerificationToken"]').val()
},
url: '@Url.Action("SearchBySSN", "Controller1")',
success: function (result) {...