示例#1
0
        public async Task <IEnumerable <Product> > GetAll()
        {
            var productsHash = await RedisRepo.HashGetAllAsync(RepositoryName);

            var products = productsHash
                           .Select(y => JsonConvert.DeserializeObject <Product>(y.Value));

            return(products);
        }