Passing Model from view to controller with Jquery Ajax

后端 未结 2 544
眼角桃花
眼角桃花 2020-12-20 04:25

I\'m try to pass my model values from View to Controller by using ajax JQuery. In my controller that model is shown as null.

Controller alr

2条回答
  •  我在风中等你
    2020-12-20 04:46

    1. data: '{info:' doesn't match model name: public ActionResult InsertItems(List invoice)
    2. Probably you need default constructor for model for proper deserialization.
    3. Check if your ajax data could be deserialized in List

提交回复
热议问题