static void Main(string[] args) { DataService dataService = new DataService(); dataService.GetData(SuccessFunction, ErrorFunction); }