var expr =
  (from p in products
  select p.Price
  ).Average();
var expr =
  (from p in products
  select new { p.IdProduct, p.Price }
  ).Average(p => p.Price);
