Это может не ответить на ваш вопрос, так как вас может не заинтересовать решение jQuery-Ajax.Но те, кто может прийти сюда в поисках ответа, вот как я его добился:
Jquery & Ajax:
$.ajax({
url: '/Controller/Method?id=2&id=3',
type: 'GET',
datatype: "json",
processData: false,
contentType: "application/json; charset=utf-8",
async: true,
success: function(response){},
error: function(response){}
});
C # Контроллер:
[HttpGet]
public ActionResult ExportRecords(string[] id)
{
foreach(string value in id)
{
System.Diagnostics.Debug.Writeline(value);
}
return View();
}