debug on server

This commit is contained in:
Nakorn Rientrakrunchai
2020-08-03 21:05:55 +07:00
parent 5610b236ae
commit 7281477c17
2 changed files with 8 additions and 0 deletions

View File

@@ -205,6 +205,7 @@ namespace TodoAPI2.Models
using (var client = new HttpClient())
{
var url = MyHelper.GetConfig(Configuration, "SiteInformation:hr_upload_api");
Console.WriteLine("SiteInformation:hr_upload_api = "+MyHelper.GetConfig(Configuration, "SiteInformation:hr_upload_api"));
var response = client.PostAsync(url, form).Result;
response.EnsureSuccessStatusCode();
var json = response.Content.ReadAsStringAsync().Result;