I want to retrieve all determined columns from the model table as queryable I write code blow it shows me
Severity Code Description Project File Line Suppression State Error CS1503 Argument 1: cannot convert from 'System.Collections.Generic.List' to 'System.Collections.Generic.List'
any help to solve this error with the best practice:**
public IQueryable<DAL.model> GetAllmodels()
{
var models = (from d in db.models
where (d.Model_Deleted == false)
select (
new
{
d.Model_ID,
d.Model_Name,
d.Model_Image
})).AsQueryable();
return models;
}