0

I am using this method to send post request but it gives me error 500 internal error for jquery.1.11.1.min.js.

        $(document).ready(function () {
            $.ajax({
                type: "POST",
                url: '@Url.Action("cashondelivery", "Home")',
                data: "",
                dataType: "json",
                contentType: 'application/json; charset=utf-8',
                success: function (result) {
                    alert(result);
                },
                error: function (data) {

                    alert(data);

                }
            });

         });

    //this is action method in controller
    [HttpPost]
    public ActionResult cashondelivery(productinfoModel mmodel)
    {
      return View();
    }
JSS
  • 21
  • 1
  • 12

1 Answers1

0

try to call the url in DHC(chrome plugin),the response status code 500 means server internal error, it's the server-webapp developer's mistake. not your mistake.