Im working on my school project and im new in writing LINQ query's so its hard for me to convert this SQL query to LINQ. I have problem with writing linq query for top 10 best selling products. I have table for Products and table for Selling item.
I tried with this:
List<Proizvodi> proizvodi = db.Proizvodi.
OrderByDescending(x => db.IzlazStavke.Where(y => y.ProizvodID == x.ProizvodID).
Sum(t => t.Cijena)).Take(10).ToList();
But result is not good, any help please.

