title: 'int' does not contain a definition for 'ToList'
body: <p>So I'm trying to run a Linq query that's analogous to the SQL query:</p>
  
  <pre><code>SELECT COUNT(*) 
  FROM table 
  WHERE ww &gt;= [wwStartSelected] 
      AND ww &lt;= [wwEndSelected] 
      AND manager='[managerName]' 
      AND status='Done'
  GROUP BY ww; 
  </code></pre>
  
  <p>To get a count of the number of rows (tasks) within the given ww range that are marked as done under a particular manager and grouped by ww. I've tried to create a LINQ query that would return something similar (wwStartSelected &amp;&amp; wwEndSelected are global vars):</p>
  
  <pre><code>protected List&lt;int&gt; getManagerDoneCount(string managerName)
  {
      using (var context = new InfoDBContext())
      {
          List&lt;int&gt; managerDoneCount = context.InfoSet.Where(x =&gt; x.ww &gt;= wwStartSelected &amp;&amp; x.ww &lt;= wwEndSelected &amp;&amp; x.manager == managerName &amp;&amp; x.status == "Done").GroupBy(x =&gt; x.ww).Count().ToList();
  
          return managerDoneCount;
      }
  }
  </code></pre>
  
  <p>This query would then feed into a chart:</p>
  
  <pre><code>var testChart = new Chart(width: 600, height: 400)
      .AddTitle("Test")
      .AddSeries(
          name: "Done",
          chartType: "StackedColumn100",
          xValue: new[] { WWList },
          yValues: new[] { getManagerDoneCount("someManager") })
  </code></pre>
  
  <p>However I'm running into an issue with my Linq line and it says: </p>
  
  <blockquote>
    <p>'int' does not contain a definition for 'ToList' and no extension method 'ToList'
    accepting a first argument of type 'int' could be found (are you
    missing a using directive or an assembly reference?)</p>
  </blockquote>
  
  <p>Is there way to get fix this easily or do I have to convert to string, then convert back to int for the chart series (the latter of which seems a bit silly [but if so, best way to do so])?</p>