* Get base url
<script type="text/javascript"> var baseUrl = '@Url.Content("~")'; </script>
* Use it in ajax, for example:
$(document).ready( function () { var vm = new ViewModel(); $.ajax({ url: baseUrl + 'api/menu/',
* Get base url
<script type="text/javascript"> var baseUrl = '@Url.Content("~")'; </script>
* Use it in ajax, for example:
$(document).ready( function () { var vm = new ViewModel(); $.ajax({ url: baseUrl + 'api/menu/',