初始化CRICS
This commit is contained in:
28
CommonEntity/NewDataSQL.cs
Normal file
28
CommonEntity/NewDataSQL.cs
Normal file
@@ -0,0 +1,28 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using RestSharp;
|
||||
|
||||
namespace CommonEntity
|
||||
{
|
||||
public class NewDataSQL
|
||||
{
|
||||
//public static string BaseUrl = "http://localhost:5108/";
|
||||
public static string BaseUrl = "http://localhost:7000/";
|
||||
public static void GenericHOSTNUMBER(string HotelID,string Code)
|
||||
{
|
||||
//string str = Newtonsoft.Json.JsonConvert.SerializeObject("");
|
||||
var client1 = new RestClient(BaseUrl);
|
||||
var request1 = new RestRequest("api/Values/GenericHOSTNUMBER", Method.POST);
|
||||
|
||||
//注意方法是POST
|
||||
request1.AddParameter("HotelID", HotelID);
|
||||
request1.AddParameter("HotelCode", Code);
|
||||
//request1.AddParameter("payload", str);
|
||||
|
||||
|
||||
client1.ExecuteAsync(request1, (response) => { });
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user