string apiUrl = "https://example.com/api.asmx/Agency_ListNewAndModifiedOrders";
var input = new
{
SecurityCode = "65E5EB76F0FF4E2BA92267B40213643C",
LastModifiedMinutes = 60,
ExcludePerDiem = false,
ExcludeContracts = false,
ExcludePermPlacement = false
};
var httpClient = new HttpClient();
var result = httpClient.PostAsync(apiUrl, input.AsJson());
результат тогда имеет
Id = 3, Status = WaitingForActivation, Method = "{null}", Result = "{Not yet computed}"
, но если затем добавить result.Wait();
, я получаю ошибку 500