✅ How to write special linq group by? How to shorten my code? - C#