I want to set the `ViewBag.Job_CoId2` just if the `CoId2` has a record, but I get below error in third line! 

```
  SelectList Job_CoId = 
      new SelectList(db.COM_Company.OrderBy(a => a.COM_Name), "COM_ID", "COM_Name");
  var CoId2 = db.Job_CoId2
      .Where(a => a.IDMainCo == Job_CoId.First().Value);
  if ((CoId2.Count()) > 0)
         ViewBag.Job_CoId2 = 
             new SelectList(CoId2.OrderBy(a => a.rank), "ID", "Name");

```

> 
> Unable to create a constant value of type
>  'System.Web.Mvc.SelectListItem'. Only primitive types or enumeration
>  types are supported in this context.
> 
> 
>