Server-side functions in C#