WebApi 调用Edit后某个ViewModel的字段为null

View中未设置该字段“ImageGroupsNum”:
@Html.EditorFor(model => model.ImageGroupsNum, new { htmlAttributes = new { @class = "form-control",@style= "visibility:hidden;" } })

后台Edit方法,未Bind该字段“ImageGroupsNum”:
public ActionResult Edit([Bind(Include = "Id,Name,AboutUs,QRImgName,QRImgUrl,ImageGroupsNum")] WebSiteConfigViewModel webSiteConfig)

你可能感兴趣的:(WebApi 调用Edit后某个ViewModel的字段为null)