$.ajax({ url: '@Url.Action("GetMenu", "Products")', type: 'POST', success: function (result) { alert('Success'); console.log(data); }, error: function (error) { alert(error); } });
[HttpPost] public ActionResult GetMenu() { var res = from cust in db.SHP_Categories select cust; ; return View(res); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)