❔ How to design this code ? - C#