private static IEnumerable GetDocuments(string version, string configId) { if (!string.IsNullOrWhiteSpace(configId)) { var documentService = new DocumentMetadataService(configId); return(documentService.GetItems()); } return(null); }