public IEnumerable<SelectListItem> StatusFlags() { var q = from s in CodeValueModel.StatusFlags() select new SelectListItem { Value = $"{s.Code}:{s.Value}", Text = s.Value, Selected = CodeValues.Any(vv => vv == s.Code) }; return q; }