{
foreach (UnitType item in Couseunit)
{
if (item.unit_id == 0)
{
item.unit_id = 1;
item.active = true;
}
}
List<UnitType> Couseunit = new List<UnitType>();
dgCunit.DataSource = Couseunit.Where(x => x.unit_id == 0).ToList();
dgCCCourse.DataSource = Couseunit.Where(x => x.unit_id == 1 & x.active == "Y").ToList();
how can i resolve the error
operator '==' cannot be applied to operand of type bool and string