I have this piece of code in my controller:
foreach(PartAttributeOptionSelection opsT in OpSelectionsInDb) { if (!partsEdit.SelectedOption