public RestRequest AddFormUrlEncodedValue(string key, string value) { if (!string.IsNullOrEmpty(key)) { FormUrlData.Add(new KeyValuePair <string, string>(key, value)); } return(this); }
public RestRequest AddFormUrlEncodedData(object data) { var list = ConventPropertyToParamList(data); foreach (var item in list) { FormUrlData.Add(new KeyValuePair <string, string>(item.Key, item.Value)); } return(this); }