using Microsoft.EntityFrameworkCore;
using System.Collections.Generic;
using Microsoft.Data.SqlClient;
public static void Main()
string post = @"{'ProviderJobID':12345}";
string hook = "https://jr-harvest.azurewebsites.net/api/UpdateJob";
System.Uri uri = new System.Uri(hook);
System.Net.HttpWebRequest req = System.Net.WebRequest.CreateHttp(uri);
req.ContentType = "application/json";
req.Accept = "application/json";
byte[] bPostParams = System.Text.Encoding.UTF8.GetBytes(post);
req.ContentLength = bPostParams.Length;
req.Host = "jr-harvest.azurewebsites.net";
req.ServerCertificateValidationCallback += delegate { return true; };
using (var writer = req.GetRequestStream())
writer.Write(bPostParams, 0, bPostParams.Length);
using (System.Net.WebResponse resp = req.GetResponse())
var responseStream = resp.GetResponseStream();
using (System.IO.StreamReader b = new System.IO.StreamReader(responseStream))
if (string.IsNullOrEmpty(content))
content = ((System.Net.HttpWebResponse)resp).StatusCode.ToString();
Console.WriteLine(content);