private List <DocumentEntry> GetDocuments(List <StoredQueryParameter> lstStoredQueryParameter) { List <DocumentEntry> lstDocumentEntries = null; RegistryStoredQueryDataAccess objStoredQueryDAL = null; string paramValue = null; string entryUUID = null; string uniqueID = null; //Prepare SQL IN Param Value paramValue = PrepareForSqlInStatement(lstStoredQueryParameter[0].ParameterValue); if (lstStoredQueryParameter[0].ParameterName == "$XDSDocumentEntryEntryUUID") { entryUUID = paramValue; } else { uniqueID = paramValue; } objStoredQueryDAL = new RegistryStoredQueryDataAccess(); lstDocumentEntries = objStoredQueryDAL.GetDocuments(entryUUID, uniqueID); return(lstDocumentEntries); }
protected List <DocumentEntry> GetDocumentsByEntryUUIDOrUniqueID(List <StoredQueryParameter> lstStoredQueryParams) { List <DocumentEntry> lstDocumentEntry = null; RegistryStoredQueryDataAccess objRegistryStoredQueryDAL = null; string entryUUIDs = null; string uniqueIDs = null; for (int count = 0; count < lstStoredQueryParams.Count; count++) { if (lstStoredQueryParams[count].ParameterName == "$XDSDocumentEntryEntryUUID") { entryUUIDs = PrepareForSqlInStatement(lstStoredQueryParams[count].ParameterValue); } else if (lstStoredQueryParams[count].ParameterName == "$XDSDocumentEntryUniqueId") { uniqueIDs = PrepareForSqlInStatement(lstStoredQueryParams[count].ParameterValue); } } objRegistryStoredQueryDAL = new RegistryStoredQueryDataAccess(); lstDocumentEntry = objRegistryStoredQueryDAL.GetDocuments(entryUUIDs, uniqueIDs); objRegistryStoredQueryDAL = null; return(lstDocumentEntry); }