Get method for API - C#