Exemple #1
0
        /// <summary> Finds books in the list by chosen tag.</summary>
        /// <param name="tag"> Tag to find by. </param>
        /// <returns> List of found books by tag.</returns>
        public List <Book> FindBooksByTag(Search.ISearchable tag)
        {
            if (tag == null)
            {
                throw new ArgumentNullException("Tag can't be null!");
            }

            return(tag.FindBooksByTag(BookList));
        }
        /// <summary> Finds books in the list by chosen tag.</summary>
        /// <param name="tag"> Tag to find by. </param>
        /// <returns> List of found books by tag.</returns>
        public List <Book> FindBooksByTag(Search.ISearchable tag)
        {
            if (tag == null)
            {
                logger.Error("Search tag can't be null!");
                throw new ArgumentNullException("Tag can't be null!");
            }

            logger.Debug("Searching for books by tag");
            return(tag.FindBooksByTag(BookList));
        }