debugging-1
parent
b1cd13a557
commit
a7cf60f6a9
|
@ -46,7 +46,7 @@ namespace Wrapper_Api_SequentMicrosystems.Main
|
||||||
{
|
{
|
||||||
StringContent sc = new(JsonConvert.SerializeObject(data), Encoding.UTF8, "application/json");
|
StringContent sc = new(JsonConvert.SerializeObject(data), Encoding.UTF8, "application/json");
|
||||||
|
|
||||||
HttpResponseMessage response = await _httpClient.PostAsync(Endpoint, sc);
|
HttpResponseMessage response = await _httpClient.PostAsync(new Uri(Endpoint), sc);
|
||||||
|
|
||||||
if (response.IsSuccessStatusCode)
|
if (response.IsSuccessStatusCode)
|
||||||
{
|
{
|
||||||
|
@ -66,7 +66,7 @@ namespace Wrapper_Api_SequentMicrosystems.Main
|
||||||
/// <exception cref="Exception">Error message</exception>
|
/// <exception cref="Exception">Error message</exception>
|
||||||
public async void DeleteData(string Endpoint)
|
public async void DeleteData(string Endpoint)
|
||||||
{
|
{
|
||||||
HttpResponseMessage response = await _httpClient.DeleteAsync(Endpoint);
|
HttpResponseMessage response = await _httpClient.DeleteAsync(new Uri(Endpoint));
|
||||||
|
|
||||||
if (response.IsSuccessStatusCode)
|
if (response.IsSuccessStatusCode)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue