@model HelloWorldMvcApp.SampleViewModel
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="//netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css">
<input type="button" value="Get Results" onclick="getResults()" class="btn btn-primary"/>
<label for="usr">Response:</label>
<textarea id="txtResponse" class="form-control"></textarea>
fetch('@Url.RouteUrl(new{ action="GetResults", controller="Home"})', {
'Accept': 'application/json',
'Content-Type': 'application/x-www-form-urlencoded;charset=UTF-8'
body: "token=pass-some-data"
.then(blob=> blob.json())
document.getElementById("txtResponse").value =JSON.stringify(data);