コード例 #1
0
        public static void CreateSampleAnalyticsForStore(List <Product> products, HccRequestContext context = null)
        {
            var sampleData = new SampleData(context ?? HccRequestContext.Current);

            sampleData.CreateSampleAnalytics(products);
        }
コード例 #2
0
        public static bool SampleAnalyticsExists(HccRequestContext context = null)
        {
            var sampleData = new SampleData(context ?? HccRequestContext.Current);

            return(sampleData.IsSampleAnalyticsExist());
        }
コード例 #3
0
        public static void AddSampleProductsToStoreWithoutStatistics(HccRequestContext context = null)
        {
            var sampleData = new SampleData(context ?? HccRequestContext.Current);

            sampleData.AddSampleProducts();
        }
コード例 #4
0
        public static void RemoveSampleProductsFromStore(HccRequestContext context = null)
        {
            var sampleData = new SampleData(context ?? HccRequestContext.Current);

            sampleData.RemoveSampleProducts();
        }
コード例 #5
0
        public static void RemoveSampleAnalyticsForStore(HccRequestContext context = null)
        {
            var sampleData = new SampleData(context ?? HccRequestContext.Current);

            sampleData.DeleteSampleAnalytics(false);
        }