I am really bummed out that I can't figure out this simple problem even after hours of research:
@Ajax.ActionLink("Test", "Test", new AjaxOptions { HttpMethod = "Post" })
<a data-ajax="true" data-ajax-method="Post" href="/Home/Test">Test</a>
It's as simple as it can get but it makes a GET request to /Home/Test even though I specified POST.
Inside _Layout.cshtml I have
<body>
@RenderBody()
@Scripts.Render("~/bundles/jquery")
@Scripts.Render("~/bundles/jqueryval")
@Scripts.Render("~/bundles/bootstrap")
@RenderSection("scripts", required: false)
</body>
The bundle jquery val includes
jquery.validate.js
jquery.validate.unobtrusive.js