✅ Is it possible to refactor this methods and create only one? - C#