API structure - C#