Skip to content

Instantly share code, notes, and snippets.

@ByteDev
Last active July 16, 2021 10:02
Show Gist options
  • Save ByteDev/0831bf833674cdc4a0fc1cf5570b5878 to your computer and use it in GitHub Desktop.
Save ByteDev/0831bf833674cdc4a0fc1cf5570b5878 to your computer and use it in GitHub Desktop.
var response = await client.SendAsync(request);

if (response.Content.Headers.ContentType.MediaType == "application/json")
{
    var json = await response.Content.ReadAsStringAsync();
  
    var order = JsonConvert.DeserializeObject<Order>(json);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment