I'm attempting to create a 2 column bootstrap layout with dynamic data coming from an MVC model, using Razor. Goal is to have unique data in each column until looping is complete. The following code repeats the same data in both columns. What logic would I need in order to make this work
@{
int i=1;
foreach (var item in Model)
{
<div class="row">
<div class="col-md-6">
<input type="checkbox" checked="@item.Checked" />
@item.Description
</div>
<div class="col-md-6">
<input type="checkbox" checked="@item.Checked" />
@item.Description
</div>
</div>
i++;
}
}