Пример #1
0
 public RestRequest AddFormUrlEncodedValue(string key, string value)
 {
     if (!string.IsNullOrEmpty(key))
     {
         FormUrlData.Add(new KeyValuePair <string, string>(key, value));
     }
     return(this);
 }
Пример #2
0
        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);
        }