Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- HttpClient _client = new HttpClient();
- _client.BaseAddress = new Uri(endpoint);
- response = await _client.DeleteAsync(resource);
- response.EnsureSuccessStatusCode();
- res = await response.Content.ReadAsStringAsync();
- return await JsonConvert.DeserializeObjectAsync<T>(res);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement