cannot convert from System.Collections.Generic.List<> to System.Collections.Generic.IEnumerable<>
<p>Error occurred when trying to add qresult. Anyone can please advise / guide how to fix / amend my code? thanks
cannot convert from System.Collections.Generic.List&lt;> to System.Collections.Generic.IEnumerable&lt;> </p>

<pre><code>public class SystemAccessList
{
     public SystemAccess SystemAccess { get; set; }

     public List&lt;SystemAccess&gt; SystemAccessList { get; set; }

     SystemDbContext db;

 public void setDbContext(PALMSConfigDbContext _db)
    {
        db = _db;
    }

  public SystemAccessList GetAccessList(SystemAccessList systemAccessList)
  {

    var qresult = db.tbl_SystemAccessList
            .GroupBy(g =&gt; g.ClassID)
            .AsEnumerable().Select(c =&gt;
            {
                var rr = new ResultRow { Class = c.Key };
                foreach (var r in db.tbl_SystemAccessList.GroupBy(gg =&gt; gg.StudentID))
                {
                    rr.Student[r.Key] = "N";
                }
                foreach (var r in c.Where(w =&gt; w.ClassID == c.Key))
                {
                    rr.Student[r.StudentID] = "Y";
                }
                return rr;
            }).ToList();

    systemAccessList.SystemAccessList.AddRange(qresult);
    return systemAccessList;
}

class ResultRow
{
    public ResultRow()
    {
        Student = new Dictionary&lt;string, string&gt;();
    }

    public string Class { get; set; }

    public IDictionary&lt;string, string&gt; Student { get; set; }

    public string GetHeader()
    {
        return Student.Aggregate("Class", (current, s) =&gt; current + "|" + s.Key);
    }

    public string GetSolidRow()
    {
        return Student.Aggregate(Class, (current, s) =&gt; current + "|" + s.Value);
    }
    }

  public class SystemAccess
   {
       [Key]
       public int ID { get; set; }
       public string ClassID { get; set; }
       public string StudentID { get; set; }
   }
</code></pre>