POST a form array without successful

后端 未结 5 1257
误落风尘
误落风尘 2020-11-21 05:07

I\'m developing an ASP.NET MVC 5 web with C# and .NET Framework 4.5.1.

I have this form in a cshtml file:

@model MyProduct.         


        
5条回答
  •  离开以前
    2020-11-21 05:41

    In your Post Methode you receive "MyProduct.Web.API.Models.ConnectBatchProductViewModel" as Parameter.
    Use the existing model for the Post methode.

    Why do you want a IEnumerable from your model? there is only one available including the id in the model.

提交回复
热议问题