How to structure query functions in services - C#