public List <Product> GetData()
        {
            var data = _cache.Get <List <Product> >("bundleProduct");

            if (data == null)
            {
                List <Product> products               = new List <Product>();
                Query          allCitiesQuery         = InitalCleinttCredential.Collection("products");
                QuerySnapshot  allCitiesQuerySnapshot = allCitiesQuery.GetSnapshotAsync().GetAwaiter().GetResult();
                foreach (DocumentSnapshot documentSnapshot in allCitiesQuerySnapshot.Documents)
                {
                    Product product = documentSnapshot.ConvertTo <Product>();
                    products.Add(product);
                }
                products.ForEach(x =>
                {
                    x.productImg = _file.GetSingleData(x.productName).productImg;
                });
                var cacheEntryOptions = new MemoryCacheEntryOptions().SetSlidingExpiration(TimeSpan.FromDays(1));
                _cache.Set("bundleProduct", products, cacheEntryOptions);

                return(products);
            }
            else
            {
                return(data);
            }
        }
        public OrderDetail GetOrder([FromForm] string orderId)
        {
            var targetOrder   = _order.GetSingleData(orderId);
            var targetProduct = _products.GetSingleData(targetOrder.productId);

            return(new OrderDetail()
            {
                order = new List <Order> {
                    targetOrder
                },
                product = targetProduct
            });
        }