/// <summary>
/// Convert dictionary into string
/// </summary>
/// <param name="dictionary"></param>
/// <returns></returns>
public static string DictionaryToString(IDictionary<string, object> dictionary)
{
if (dictionary == null) return string.Empty;
var dictionaryString = dictionary.Aggregate(string.Empty,
(current, keyValues) => current + (keyValues.Key + " : " + keyValues.Value + ", "));
return dictionaryString.TrimEnd(',', ' ');
}