Click here to Skip to main content
15,886,919 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I tried to call action method inside Areas in
jquery


What I have tried:

function Delete() {

$.ajax({

url: '@Url.Action("DelDecision", "Decision", new { area = "Patient" })',
type: 'POST',
cache: false,
success: function (data) {
alert(data);
}
});
}
Posted
Updated 18-Aug-17 7:24am
Comments
Patrice T 18-Aug-17 4:47am    
What is the question?

1 solution

You can user specify the Route name on your Action like
[Route("",Name="CallArea")]

And then pass this name on Url.Action overload.
Hope this work.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900