http://stackoverflow.com/questions/13019778/make-an-ajax-request-using-ajax-in-mvc-4
HomeController.cs
public string test(){ return "It works"; }
View.cshtml
}
function inventory(dealerID) { $.ajax({ url: '@Url.Action("test","Home")', data: {dealerID: dealerID}, type: 'POST', success: function(data) { alert(data); } }); [HttpPost] public ActionResult test(string dealerID) { return Content("It works"); }