public async override Task <string> GetResult(Auth auth) { var dic = ParamHelper.GetParams(this); var tmp = this.LogisticsNOs.Select(s => new { internationalLogisticsId = s }); dic.Add("warehouseOrderQueryDTOs", JsonConvert.SerializeObject(tmp)); var url = auth.GetApiUrl(this.APIName, dic); var rh = new RequestHelper(auth.CookieContainer); this.ResultString = rh.Post(url, dic); return(await Task.FromResult(this.ResultString)); }
public override Dictionary <string, string> GetParams(object obj, System.Reflection.PropertyInfo p) { var value = p.GetValue(obj, null); return(ParamHelper.GetParams(value)); }