public Book[] SelectAll()
        {
            var providerXmlDocuments = xmlFileService.LoadAll();
            var books = providerXmlDocuments
                        .Where(d => marvelParser.CanParse(d))
                        .SelectMany(SafeParse)
                        .ToArray();

            return(books);
        }
        public Book[] SelectAll()
        {
            var dcData = xmlFileService.LoadAll().SingleOrDefault(d => IsDCDataFile(d.FilePath));

            if (dcData == null)
            {
                return(new Book[0]);
            }

            try
            {
                var books = dcComicsParser.Parse(dcData);
                return(books);
            }
            catch (Exception ex)
            {
                log.Error(ex, $"Can't parse DC Comics file \"{dcData.FilePath}\"");
                return(new Book[0]);
            }
        }