case 4447
This commit is contained in:
@@ -97,12 +97,53 @@ namespace contact.Pages
|
||||
}
|
||||
}
|
||||
|
||||
PostRequestToSockeye();
|
||||
SendMail();
|
||||
|
||||
skipspam:
|
||||
return Redirect("https://ayanova.com/docs/ay-evaluate/");
|
||||
}
|
||||
|
||||
private void PostRequestToSockeye()
|
||||
{
|
||||
|
||||
using var client = new HttpClient();
|
||||
//client.BaseAddress = new System.Uri("https://sockeye.ayanova.com");///api/v8.0/subscription-server/
|
||||
|
||||
var r = new
|
||||
{
|
||||
dataCenter = SubRequest.DataCenter,
|
||||
email = SubRequest.Email,
|
||||
company = SubRequest.Company,
|
||||
name = SubRequest.Name,
|
||||
rValue = "totallylegit"
|
||||
};
|
||||
|
||||
|
||||
HttpContent body = new StringContent(Newtonsoft.Json.JsonConvert.SerializeObject(r),
|
||||
System.Text.Encoding.UTF8,
|
||||
"application/json");
|
||||
var response = client.PostAsync("https://sockeye.ayanova.com/subscription-server-trial-request", body).Result;
|
||||
//var response = client.PostAsync("http://localhost:7676/subscription-server-trial-request", body).Result;
|
||||
|
||||
// if (response.IsSuccessStatusCode)
|
||||
// {
|
||||
// var content = await response.Content.ReadAsStringAsync();
|
||||
// if (!string.IsNullOrEmpty(content))
|
||||
// {
|
||||
// var objDeserializeObject = JsonConvert.DeserializeObject<SongsModel>(content);
|
||||
|
||||
// Console.WriteLine("Data Saved Successfully.");
|
||||
|
||||
// if (objDeserializeObject != null)
|
||||
// {
|
||||
// Console.WriteLine(objDeserializeObject.Name);
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
|
||||
}
|
||||
|
||||
|
||||
private void SendMail()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user