public async void subscribe(string id, [FromBody] ttt callbackUrl) { var callString = callbackUrl.id; var response = client_.PostAsync(callString, new StringContent("{\"info\":\"The info is this.\"}", Encoding.UTF8, "application/json")); var msg = await response; }
public async Task <IActionResult> subscribe(string id, [FromBody] ttt callbackUrl) { var callString = callbackUrl.id; var response = client.PostAsync(callString, new StringContent("{\"info\":\"The info is this.\"}", Encoding.UTF8, "application/json")); var msg = await response; return(new ObjectResult("success")); }
public void subscribe(string id, [FromBody] ttt callbackUrl) { context_.employeeUrls.Add(new EmployeeCallbackURL(id, callbackUrl.id)); context_.SaveChanges(); }
public void subscribe(string id, [FromBody] ttt callbackUrl) { context_.realEstateCallbackURLs.Add(new RealEstateCallbackURL(callbackUrl.mls, callbackUrl.mortId, callbackUrl.callback)); context_.SaveChanges(); }