I am trying to use Url.Action() method in my js file to define urls for my ajax calls. So far I have failed.
$.ajax( { type: \"POST\", url: \'@Url.
You can't use '@Url.Action("SomeAction", "SomeController")' in js file, because this is ASP.NET MVC helper, if you put your code to the view everything will work.
'@Url.Action("SomeAction", "SomeController")'