prod
is a IEnumerable<AnonymousType>
you need to create Product
in order to compile.
select new Product
{
ProductID = p.ProductID,
ItemNumber = p.ItemNumber
});
If you're not aware of "Anonymous Types" you can read about it here and here