public async Task <Autor> GetAutorByName(string name)
        {
            if (!_collection.Any())
            {
                var compartimossService = new CompartiMossService();
                _collection = await compartimossService.SearchAuthors();

                if (canRedis)
                {
                    using (var redisClient = new RedisClient(urlRedis, 6379))
                    {
                        redisClient.StoreAll(_collection);
                    }
                }
            }
            return(_collection.Where(x => x.Name.Equals(name)).FirstOrDefault());
        }
        public async Task <IEnumerable <Autor> > GetAllAutor()
        {
            if (!_collection.Any())
            {
                var compartimossService = new CompartiMossService();
                _collection = await compartimossService.SearchAuthors();

                if (canRedis)
                {
                    using (var redisClient = new RedisClient(urlRedis, 6379))
                    {
                        redisClient.StoreAll(_collection);
                    }
                }
            }

            return(_collection);
        }