right now I have a checkbox that looks like this
<input type="checkbox" id="all@(part.ID)" class="part-class" data-partId="@(part.ID)" checked>
But it would be beneficial to me to instead convert this checkbox into a CheckBoxFor, so this is what I tried
@Html.CheckBoxFor(x => x.Parts[i].MoveAll, new { @id = all@"(part.ID)", @class="part-class", data-partId="@(part.ID)" })
But there are red line errors under id and data-partId attributes so how I'm confused on how to apply the same attributes to the checkboxFor?