@model List<List<string>>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>tokenCheck</title>
<link rel="stylesheet" href="//netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css">
<div class="col-md-6 col-md-offset-3">
@using (Html.BeginForm())
@foreach(var item in Model){
<div>a href="https://other_site/?token=@item[1]"</div>
<button type="button" onclick="checkToken('@item[1]')">Get @item[1] User</button>
<button type"button" onclick="GetAllData()">GetAllData</button>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
<script src="//netdna.bootstrapcdn.com/bootstrap/3.1.1/js/bootstrap.min.js"></script>
function checkToken(tokendata){
$.post('@Url.RouteUrl(new{ action="GetAnswer", controller="Home"})',{token:tokendata},function(result){
$("#result").html(result);
$.post('@Url.RouteUrl(new{ action="GetAllData", controller="Home"})',{token:''},function(result){
$("#result").html(result);