I have a simple Action in my Controller:
public ActionResult Edit(int itemId)
{
return View(new EditModel() { ItemId = itemId + 1 });
}
public class EditModel
{
public int ItemId { get; set; }
public string Title { get; set; }
}
The problem comes in the View, when I try to display everything.
Model.ItemId: @Model.ItemId
@Html.EditorForModel()
Since action parameter and property on EditModel have the same name (itemId) I get the following:

Is this a correct behaviour? How can I change default value displayed inside a form in that case?