debugging-1

master
Jan Beníček 2023-12-16 22:37:38 +01:00
parent b1cd13a557
commit a7cf60f6a9
1 changed files with 2 additions and 2 deletions

View File

@ -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)
{ {