Is it possible to accept only feedback values from a nested view model?
For example, I would like to publish only "Address":
@Html.TextBoxFor(p => p.User.Account.Address.Street)
@Html.ValidationMessageFor(p => p.User.Account.Address.Street)
To this controller action:
[HttpPost]
public ActionResult SaveAddress(Address address) {
}
Currently, values are returned only if I pass the address to my own partial view so that the properties look like this: @Html.TextBoxFor(p => p.Street)
@Html.ValidationMessageFor(p => p.Street)
source
share