I have a file for my javascript separate from my web pages. However what this appears to mean is that I cannot write the following line;
var url = '@Url.Action("AddTrade", "DataService")';
I am reluctant to hard code the url in case it is different when I deploy it.
So what should I do about this?