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 write it like this way just
url:'/controllername/Actionname',