I want to edit multiple (say 4) instance of my model Restriction:
public int RestrictionID { get; set; }
public string portefeuille { get; set; }
I try to do this in my view:
@model IEnumerable<Management.Models.Restriction>
@for ( int i= 0; i < 4; i++)
{
@Html.EditorFor(_ => Model.[i].portefeuille)
}
But I have an error that I can't use indexation on type IEnumerable.
Can somebody help me to solve this problem?