I am trying to select stores using a lambda function and converting the result to a SelectListItem so I can render it. However it is throwing a \"Type of Expression
Why not just use all Lambda syntax?
database.Stores.Where(s => s.CompanyID == curCompany.ID) .Select(s => new SelectListItem { Value = s.Name, Text = s.ID });