Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static async Task<dynamic> getDataFromService(string pQueryString)
- {
- HttpClient client = new HttpClient();
- var response = await client.GetAsync(pQueryString);
- dynamic data = null;
- if (response != null)
- {
- string json = response.Content.ReadAsStringAsync().Result;
- data = JsonConvert.DeserializeObject(json);
- }
- return data;
- }
Add Comment
Please, Sign In to add comment