I am used to work in Net Core. When I call a RestApi I read retrieved data like this.
HttpResponseMessage response = client.PostAsJsonAsync(url, param).Result;
value = response.Content.ReadAsJsonAsync<R>().Result;
Now, I am back in Framework 4.5 and i need a replace to
ReadAsJsonAsync
What is the best way to replace it?
Thanks