var keyValueOnObject = ToKeyValue(req);
var keyValueRequest = new List<KeyValuePair<string, string>>();
foreach (KeyValuePair<string, string> p in keyValueRequest)
{
if (p.Value != null)
keyValueRequest.Add(new KeyValuePair<string, string>(p.Key, p.Value));
}
in here the code try to fill object, with result list, not request list.
in here the code try to fill object, with result list, not request list.