I post a model to this action:
public ActionResult Action(Detail Model)
{
try
{
Model.db = db;
Model.PerformAction();
return PartialView("Detail", Model);
}
catch (Exception Exception)
{
...
}
}
in Model.PerformAction I change some property in the model. In the view detail a see the model updated, but, this is the point, if I do @Html.HiddenFor(m => m.SomePropertyChanged)
the control is rendered with the old value (the one i posted to the action). What am I doing wrong?