Esempio n. 1
0
        public static int CreateSueetieProduct(SueetieProduct sueetieProduct)
        {
            int num = CommerceDataProvider.LoadProvider().CreateSueetieProduct(sueetieProduct);

            CommerceCommon.ClearMarketplaceCache();
            return(num);
        }
Esempio n. 2
0
        public static int RecordPurchase(ProductPurchase productPurchase)
        {
            int num = -1;

            num = CommerceDataProvider.LoadProvider().RecordPurchase(productPurchase);
            ClearProductPurchaseListCache();
            return(num);
        }
Esempio n. 3
0
        public static int AddPhoto(ProductPhoto productPhoto)
        {
            int num = -1;

            num = CommerceDataProvider.LoadProvider().AddPhoto(productPhoto);
            ClearProductPhotoListCache();
            return(num);
        }
Esempio n. 4
0
 public static List <SueetieProduct> GetSueetieProductList(bool getCached)
 {
     if (getCached)
     {
         return(GetSueetieProductList());
     }
     return(CommerceDataProvider.LoadProvider().GetSueetieProductList());
 }
Esempio n. 5
0
        public static bool RemoveProductCategory(int categoryID)
        {
            int num = 0;

            if (categoryID != 0)
            {
                num = CommerceDataProvider.LoadProvider().RemoveCategory(categoryID);
            }
            return(num > 0);
        }
Esempio n. 6
0
        public static List <ActionTypeItem> GetActionTypeItemList()
        {
            string key = ActionTypeItemListCacheKey();
            List <ActionTypeItem> actionTypeItemList = SueetieCache.Current[key] as List <ActionTypeItem>;

            if (actionTypeItemList == null)
            {
                actionTypeItemList = CommerceDataProvider.LoadProvider().GetActionTypeItemList();
                SueetieCache.Current.Insert(key, actionTypeItemList);
            }
            return(actionTypeItemList);
        }
Esempio n. 7
0
        public static List <SueetieProduct> GetSueetieProductsByCategoryTree(int categoryID)
        {
            string key = SueetieProductListTreeCacheKey(categoryID);
            List <SueetieProduct> sueetieProductsByCategoryTree = SueetieCache.Current[key] as List <SueetieProduct>;

            if (sueetieProductsByCategoryTree == null)
            {
                sueetieProductsByCategoryTree = CommerceDataProvider.LoadProvider().GetSueetieProductsByCategoryTree(categoryID);
                SueetieCache.Current.Insert(key, sueetieProductsByCategoryTree);
            }
            return(sueetieProductsByCategoryTree.LicensedProductListByCategory());
        }
Esempio n. 8
0
        public static List <SueetieProduct> GetSueetieProductList()
        {
            string key = SueetieProductListCacheKey();
            List <SueetieProduct> sueetieProductList = SueetieCache.Current[key] as List <SueetieProduct>;

            if (sueetieProductList == null)
            {
                sueetieProductList = CommerceDataProvider.LoadProvider().GetSueetieProductList();
                SueetieCache.Current.Insert(key, sueetieProductList);
            }
            return(sueetieProductList);
        }
Esempio n. 9
0
        public static List <CartLink> GetCartLinkList()
        {
            string          key          = CartLinkListCacheKey();
            List <CartLink> cartLinkList = SueetieCache.Current[key] as List <CartLink>;

            if (cartLinkList == null)
            {
                cartLinkList = CommerceDataProvider.LoadProvider().GetCartLinkList();
                SueetieCache.Current.Insert(key, cartLinkList);
            }
            return(cartLinkList);
        }
Esempio n. 10
0
        public static List <PurchaseTypeItem> GetPurchaseTypeItemList()
        {
            string key = PurchaseTypeItemListCacheKey();
            List <PurchaseTypeItem> purchaseTypeItemList = SueetieCache.Current[key] as List <PurchaseTypeItem>;

            if (purchaseTypeItemList == null)
            {
                purchaseTypeItemList = CommerceDataProvider.LoadProvider().GetPurchaseTypeItemList();
                SueetieCache.Current.Insert(key, purchaseTypeItemList);
            }
            return(purchaseTypeItemList);
        }
Esempio n. 11
0
        public static void SetAdPreviewPhoto(int productID, int photoID)
        {
            CommerceDataProvider provider     = CommerceDataProvider.LoadProvider();
            ProductPhoto         productPhoto = new ProductPhoto
            {
                PhotoID   = photoID,
                ProductID = productID
            };

            provider.SetPreviewPhoto(productPhoto);
            CommerceCommon.ClearMarketplaceCache();
        }
Esempio n. 12
0
        public static List <ProductPurchase> GetProductPurchaseList()
        {
            string key = ProductPurchaseListCacheKey();
            List <ProductPurchase> productPurchaseList = SueetieCache.Current[key] as List <ProductPurchase>;

            if (productPurchaseList == null)
            {
                productPurchaseList = CommerceDataProvider.LoadProvider().GetProductPurchaseList();
                SueetieCache.Current.Insert(key, productPurchaseList);
            }
            return(productPurchaseList);
        }
Esempio n. 13
0
        public static PaymentService GetPrimaryPaymentService()
        {
            string         key            = PaymentServiceCacheKey();
            PaymentService paymentService = SueetieCache.Current[key] as PaymentService;

            if (paymentService == null)
            {
                paymentService = CommerceDataProvider.LoadProvider().GetPaymentService(-1, true);
                SueetieCache.Current.Insert(key, paymentService);
            }
            return(paymentService);
        }
Esempio n. 14
0
 public static List <ParentCategory> GetParentCategoriesByID(int categoryID)
 {
     return(CommerceDataProvider.LoadProvider().GetParentCategoryList(categoryID));
 }
Esempio n. 15
0
 public static List <ProductCategory> GetCategoriesByParentID(int parentcategoryID)
 {
     return(CommerceDataProvider.LoadProvider().GetCategoriesByParentID(parentcategoryID));
 }
Esempio n. 16
0
 public static void UpdatePaymentServiceSetting(PaymentServiceSetting paymentServiceSetting)
 {
     CommerceDataProvider.LoadProvider().UpdatePaymentServiceSetting(paymentServiceSetting);
 }
Esempio n. 17
0
 public static void SetPrimaryPaymentService(int paymentServiceID)
 {
     CommerceDataProvider.LoadProvider().SetPrimaryPaymentService(paymentServiceID);
     ClearPaymentServiceCache();
 }
Esempio n. 18
0
 public static void UpdateProductViewCount(int _productID)
 {
     CommerceDataProvider.LoadProvider().UpdateProductViewCount(_productID);
 }
Esempio n. 19
0
 public static List <ProductPurchase> GetUserPurchases(int userID)
 {
     return(CommerceDataProvider.LoadProvider().GetUserPurchases(userID));
 }
Esempio n. 20
0
 public static int AddProductCategory(ProductCategory productCategory)
 {
     return(CommerceDataProvider.LoadProvider().AddProductCategory(productCategory));
 }
Esempio n. 21
0
 public static SueetieProduct GetSueetieProduct(int productID)
 {
     return(CommerceDataProvider.LoadProvider().GetSueetieProduct(productID));
 }
Esempio n. 22
0
 public static StringDictionary GetCommerceSettingsDictionary()
 {
     return(CommerceDataProvider.LoadProvider().GetCommerceSettingsDictionary());
 }
Esempio n. 23
0
 public static void UpdateProductCategory(ProductCategory productCategory)
 {
     CommerceDataProvider.LoadProvider().UpdateProductCategory(productCategory);
 }
Esempio n. 24
0
 public static bool HasMarketplaceCategories()
 {
     return(CommerceDataProvider.LoadProvider().HasMarketplaceCategories());
 }
Esempio n. 25
0
 public static ProductPurchase GetProductPurchase(int purchaseID)
 {
     return(CommerceDataProvider.LoadProvider().GetProductPurchase(purchaseID));
 }
Esempio n. 26
0
 public static void UpdateCommerceSetting(CommerceSetting commerceSetting)
 {
     CommerceDataProvider.LoadProvider().UpdateCommerceSetting(commerceSetting);
 }
Esempio n. 27
0
 public static List <ProductPurchase> GetPurchasesByTransaction(string transactionXID)
 {
     return(CommerceDataProvider.LoadProvider().GetPurchasesByTransaction(transactionXID));
 }
Esempio n. 28
0
 public static List <PaymentService> GetPaymentServiceList()
 {
     return(CommerceDataProvider.LoadProvider().GetPaymentServiceList());
 }
Esempio n. 29
0
 public static PaymentService GetPaymentService(int paymentServiceID)
 {
     return(CommerceDataProvider.LoadProvider().GetPaymentService(paymentServiceID, false));
 }
Esempio n. 30
0
 public static void UpdateSueetieProduct(SueetieProduct sueetieProduct)
 {
     CommerceDataProvider.LoadProvider().UpdateSueetieProduct(sueetieProduct);
     CommerceCommon.ClearMarketplaceCache();
 }