1
Answer

help o solve this error

Carlos kambui

Carlos kambui

9y
537
1
{
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
Answers (1)