I am passing a list of model in the View page and only editing the Answer property of the model. But after postback all the properties are set to null except Answer property.
Here is the View Code.
@model List<NewsLetter.Models.NewsLetterQuestions>
@using (Html.BeginForm())
{
@Html.AntiForgeryToken()
for (var i = 0; i < Model.Count(); i++)
{
<div>
@Html.DisplayFor(m => m[i].Question)
</div>
<div>
@Html.EditorFor(m => m[i].Answer)
</div>
}
<div class="form-group">
<div class="col-md-offset-2 col-md-10">
<input type="submit" value="Submit" class="btn btn-default" />
</div>
</div>
}
Any help will be appreciable.