Exemplo n.º 1
0
        public async Task <List <Book> > GetSearchedBooks(string filter, string radioFilter)
        {
            ISearchStrategy searchStrategy = _searchStrategyFactory.GetSearchStrategy(radioFilter);

            if (searchStrategy != null)
            {
                return(await searchStrategy.GetSearchedBook(filter));
            }

            return(null);
        }