I am trying to convert my the result of my LINQ query to a list, but without a success until now.

```
This is my action method : 

public ActionResult DisplayListOfRolesUser()
{              
    string currentUserId = User.Identity.GetUserId();//get the id of the logged user

    UserDetails userDetails = db.UsersDetails.Where(c => c.identtyUserId == currentUserId)
    .FirstOrDefault();
    int UsrCompanyId = userDetails.CompanyId;//get the user's company

     List<WorkRole> WorkRolesQuery = db.WorkRoles.Where(c => c.CompanyId == UsrCompanyId)
     .FirstOrDefault().ToList();//get all the work roles for the compnay.

     //List<WorkRole> lst = WorkRolesQuery.ToList();

     return View(lst);
}

```

I tried many answers from stack overflow, but without success.

Currently `List<WorkRole> WorkRolesQuery = db.WorkRoles.Where(c => c.CompanyId == UsrCompanyId).FirstOrDefault().ToList();`

ToList is underlined with red and it says 'WorkRole' does not contain a definition for 'ToList'.

I simply want to have a list of `WorkRole` objects so I can display them in my view in some form.

Can somebody help?

Here is my model as well : 

```
public class WorkRole
{
    [Key]

    [DatabaseGenerated(DatabaseGeneratedOption.Identity)]

    public int WorkRoleId { get; set; }
    public string RoleName { get; set; }
    public string RoleDescription { get; set; }
    public int CompanyId { get; set; }
    public virtual Company Company { get; set; }
    public virtual ICollection<WorkRolesUsersDetails> WorkRolesUsersDetails { get; set; }
}

```