Instead of
@foreach (var item in Model)
use
@for (var i=0; i < Model.Count; i+=2)
{
}
and access properties of model like
@Model[i].ID
In order to determine which should go to right which should go left you can use
@Model[i].ID for left
and
@if(i+1 < Model.Count)
{
Model[i+1].ID for right
}
Just make sure that i+1
is never more than Model.Count