title: Can't convert ISingleResult to IEnumerable
body: <p>I'm trying to display a list coming from my database using Linqtosql but I guess I'm making it wrong.</p>
  
  <p>I wrote the SPROC to retrieve the data <a href="https://stackoverflow.com/questions/10008489/how-can-i-display-data-coming-from-a-database-using-asp-net-html">here</a> if you want further info: 
   And this is my  code: </p>
  
  <pre><code>     protected List&lt;MySubject&gt; GetSubjects(int userID, string Datetime)
      {
          userID = user_id;
          string[] dates = Datetime.Split('-');
          int year = int.Parse(dates[2]);
          int month = int.Parse(dates[1]);
          int day = int.Parse(dates[0]);
          ClassDAO classClass = new ClassDAO();
          List&lt;MySubject&gt; myTodaySubjects = GetSubjectsLinq(userID, day);
          GetSubjectsLinq(userID, day);
          return myTodaySubjects;
      }
  
      private List&lt;MySubject&gt; GetSubjectsLinq(int UserId, int day)
      {
          MySchoolDBDataContext db = new MySchoolDBDataContext();
          string Suserid = UserId.ToString();
          string Sday = day.ToString();
          var sub = db.GetSubjects(Sday , Suserid);
          return sub.ToList&lt;MySubject&gt;();
       }
  </code></pre>
  
  <p>This Line <code>"return sub.ToList&lt;MySubject&gt;();"</code> shows this error :</p>
  
  <pre><code>Error   21  Instance argument: cannot convert from 
  'System.Data.Linq.ISingleResult' to 'System.Collections.Generic.IEnumerable'. 
  </code></pre>
  
  <p>Do you know how can I fix it ?</p>