public static string GetTransactionPreferenceRequestToMuleSoft(string baseurl, string endpoint, FeatureFileData fromfeature, DataRow[] dtrwauthparam) { DataRow[] dtrwauthheaders = null; //DataTableOperations.setValueForColumn(PostRequestToMuleSoftEndPoint.getdtrwauthparam(), "Parameter", "Authorization", "ParameterValue", bearervalue); foreach (PropertyInfo pi in fromfeature.GetType().GetProperties()) { for (int i = 0; i < dtrwauthparam.Count(); i++) { if (pi.Name.ToString().Equals(dtrwauthparam[i]["Parameter"].ToString()) && IsNullCheck(pi, fromfeature)) { setValueForColumn(dtrwauthparam, "Parameter", dtrwauthparam[i]["Parameter"].ToString(), "ParameterValue", pi.GetValue(fromfeature).ToString()); } } } string respval = GetRequest(baseurl, "data/2.5/forecast/hourly", dtrwauthheaders, dtrwauthparam); return(respval); }