public DataTable GetQueueRecords(string dataObject = "") { var queueQuery = GetQueueQueryString(); if (!string.IsNullOrEmpty(queueQuery)) { var connString = ConfigurationManager.ConnectionStrings["QueueDbContext"].ConnectionString; _serviceLog.AppendLog(String.Format(" Getting Queue {0} records", dataObject)); var queueRecords = _sqlClient.QueryADO(queueQuery, connString); _serviceLog.AppendLog(String.Format(" {0} Queue {1} records found", queueRecords.Rows.Count, dataObject)); if (queueRecords != null && queueRecords.Rows.Count != 0) { return(queueRecords); } } return(null); }