Jagjit Saini

Jagjit Saini

  • NA
  • 196
  • 38.2k

Cannot implicitly convert System.linq.iqueryable to system.collections

Mar 16 2022 8:33 AM

Hi

  I am getting error - Cannot implicitly convert System.linq.iqueryable to system.collections.genericlist

public List<View_Header> GetList()
{
    var Result = from t in context.View_Header
                 where t.IsActive == true 
                 select new { t.ID, t.Name };

    return Result;
}

Thanks


Answers (1)