title: Cannot implicitly convert type 'System.Collections.Generic.List<<anonymous type
body: <p>Full exception message:</p>
  <blockquote>
  <p>Cannot implicitly convert type
  'System.Collections.Generic.List&lt;&lt;anonymous type:
  Schedular.API.Models.TaskSchedule schedule, Schedular.API.Models.Note
  note&gt;&gt;' to
  'System.Collections.Generic.IList&lt;Schedular.API.Models.TaskSchedule&gt;'.
  An explicit conversion exists (are you missing a cast?)
  [Schedular.API]</p>
  </blockquote>
  <pre class="lang-cs prettyprint-override"><code>public async Task&lt;IList&lt;TaskSchedule&gt;&gt; GetTaskSchedulesByUser(int UserId)
  {           
      var userTaskSchedule = await _context.TaskSchedules
          .Join(_context.Notes, 
                schedule =&gt; schedule.Id, 
                note =&gt; note.Id, 
                (schedule, note) =&gt; new { schedule, note })
          .Where(u =&gt; u.schedule.userId == UserId)
          .ToListAsync(); 
  
      return userTaskSchedule;            
  }
  </code></pre>
  <p>I believe the return type of the method needs changing but I am not sure to what.</p>
  <p>Models</p>
  <p>parent table = taskSchedule</p>
  <p>child table = notes</p>
  <p>Notes model</p>
  <pre><code>public class Note
  {
      public int Id { get; set; }
      public string NotesInfo { get; set; }
      public DateTime dateCreated {get; set;}
      public TaskSchedule taskSchedule {get; set;}
      public User user { get; set; }
      public int userId { get; set; } 
  }
  </code></pre>
  <p>TaskSchedule Model</p>
  <pre><code>public class TaskSchedule
  {
      public int Id { get; set; }
      public string Title { get; set; }
      public DateTime Start { get; set; }
      public DateTime End { get; set; }
      public User user { get; set; }
      public int userId { get; set; }     
  }
  </code></pre>