Bir C# MVC3 projem var ve HTML.CheckBoxFor uygulamasında sorun yaşıyorum. Aşağıdaki hatayı alıyorum
Cannot implicitly convert type 'string' to 'bool'
İşte kod:
@{
List costReductions = ViewBag.CostReductions;
foreach (Domain.LookupCostReductions cr in costReductions)
{
@: <td style="border:0 ;vertical-align: top; ">
@Html.CheckBoxFor(x => x.CostReduction, cr.Description)
@cr.Description
@:</td>
}
}
Herhangi bir fikir?