title: returning multiple class model data from linq in list via return method in C#
body: <p>I have LINQ output which I am trying to pass in list but I am getting following error 
  <img src="https://i.stack.imgur.com/oZTJN.png" alt="enter image description here"></p>
  
  <p>in linq result I am trying to pass data from two class model, if I do one class model (listOfCoursesWithoutURL ) then it work but I need to pass processedCourseInstance. I have created ModelView of two classes but not sure what I am missing in this picture</p>
  
  <h2>ViewModel</h2>
  
  <pre><code>public class CoursesInstanceStudyLevel_ViewModel
  {
      public CourseInstanceModel _CourseInstanceModel { get; set; }
      public StudyLevelModel  _StudyLevelModel { get; set; }
  }
  </code></pre>
  
  <h2>My Class</h2>
  
  <pre><code> public List&lt;CoursesInstanceStudyLevel_ViewModel&gt; ProcessAllCoursesApplicationURL(CourseApplicationsURLFeed_Model _obj)
      {
  
     using(var _uof = new Courses_UnitOfWork())
      {
      _uof.CourseInstances_Repository.GetAll();
  
       var _listOfCoursesWithoutURL = (from b in ListOfCoursesInstances 
                                             where b.ApplicationURL == null
                                             select b).ToList();
  
  
      var processedCourseInstance = (from _courseInstances in _uof.CourseInstances_Repository.GetAll()
                                           join _courses in _uof.Courses_Repository.GetAll() on _courseInstances.CourseID equals _courses.CourseID 
                                           join _studylevel in _uof.StudyLevel_Repository.GetAll() on _courses.StudyLevelId equals _studylevel.StudyLevelID
                                           orderby _courseInstances.CourseCode
                                           select new { _courseInstances, _studylevel }).ToList();
  
  
    return processedCourseInstance;     // it doesn't work ... refer to screen shot
    // return _listOfCoursesWithoutURL //it works 
   }
  }
  </code></pre>
  
  <h2>Error</h2>
  
  <p><img src="https://i.stack.imgur.com/yHwmx.png" alt="enter image description here"></p>