前端:
[AllowAnonymous]
[HttpGet]
public void Test20171218(string myPara) {
var client = MyClient.Create();
var resp = client.GetAsync("MyUrl?myPara="+myPara).Result;
var result = resp.Content.ReadAsStringAsync().Result;
List<MyRecord> data = MyJsonHelper.Deserialize<List<MyRecord>>(result);
}
/// <summary>
/// 获取MyRecord集合
/// </summary>
/// <param name="myPara"></param>
/// <returns></returns>
[HttpGet]
public List<SignRecordDoc> GetMyRecordDocLst(string myPara) {
return this.MyRecordService.GetMyRecordDocLst(myPara);
}