viewbag c# code example Example: filter collection viewbag ((IEnumerable<ComboItem>)ViewBag.Districts).Where(x => x.ID == item.DISTRICT_ID);