No parameterless constructor defined for this object. in ASP.NET MVC Controller

后端 未结 6 1842
情话喂你
情话喂你 2021-01-11 19:19

I am sure this is quite straightforward but I am a bit stuck here. The routing defined for my app is just the default. I have the following controller defined.



        
6条回答
  •  鱼传尺愫
    2021-01-11 20:18

    Does DocumentEditViewModel have a parameterless constructor? I believe this is needed for modelbinding on your post view.

提交回复
热议问题