public static int CreateSueetieProduct(SueetieProduct sueetieProduct) { int num = CommerceDataProvider.LoadProvider().CreateSueetieProduct(sueetieProduct); CommerceCommon.ClearMarketplaceCache(); return(num); }
public static int RecordPurchase(ProductPurchase productPurchase) { int num = -1; num = CommerceDataProvider.LoadProvider().RecordPurchase(productPurchase); ClearProductPurchaseListCache(); return(num); }
public static int AddPhoto(ProductPhoto productPhoto) { int num = -1; num = CommerceDataProvider.LoadProvider().AddPhoto(productPhoto); ClearProductPhotoListCache(); return(num); }
public static List <SueetieProduct> GetSueetieProductList(bool getCached) { if (getCached) { return(GetSueetieProductList()); } return(CommerceDataProvider.LoadProvider().GetSueetieProductList()); }
public static bool RemoveProductCategory(int categoryID) { int num = 0; if (categoryID != 0) { num = CommerceDataProvider.LoadProvider().RemoveCategory(categoryID); } return(num > 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); }
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()); }
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); }
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); }
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); }
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(); }
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); }
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); }
public static List <ParentCategory> GetParentCategoriesByID(int categoryID) { return(CommerceDataProvider.LoadProvider().GetParentCategoryList(categoryID)); }
public static List <ProductCategory> GetCategoriesByParentID(int parentcategoryID) { return(CommerceDataProvider.LoadProvider().GetCategoriesByParentID(parentcategoryID)); }
public static void UpdatePaymentServiceSetting(PaymentServiceSetting paymentServiceSetting) { CommerceDataProvider.LoadProvider().UpdatePaymentServiceSetting(paymentServiceSetting); }
public static void SetPrimaryPaymentService(int paymentServiceID) { CommerceDataProvider.LoadProvider().SetPrimaryPaymentService(paymentServiceID); ClearPaymentServiceCache(); }
public static void UpdateProductViewCount(int _productID) { CommerceDataProvider.LoadProvider().UpdateProductViewCount(_productID); }
public static List <ProductPurchase> GetUserPurchases(int userID) { return(CommerceDataProvider.LoadProvider().GetUserPurchases(userID)); }
public static int AddProductCategory(ProductCategory productCategory) { return(CommerceDataProvider.LoadProvider().AddProductCategory(productCategory)); }
public static SueetieProduct GetSueetieProduct(int productID) { return(CommerceDataProvider.LoadProvider().GetSueetieProduct(productID)); }
public static StringDictionary GetCommerceSettingsDictionary() { return(CommerceDataProvider.LoadProvider().GetCommerceSettingsDictionary()); }
public static void UpdateProductCategory(ProductCategory productCategory) { CommerceDataProvider.LoadProvider().UpdateProductCategory(productCategory); }
public static bool HasMarketplaceCategories() { return(CommerceDataProvider.LoadProvider().HasMarketplaceCategories()); }
public static ProductPurchase GetProductPurchase(int purchaseID) { return(CommerceDataProvider.LoadProvider().GetProductPurchase(purchaseID)); }
public static void UpdateCommerceSetting(CommerceSetting commerceSetting) { CommerceDataProvider.LoadProvider().UpdateCommerceSetting(commerceSetting); }
public static List <ProductPurchase> GetPurchasesByTransaction(string transactionXID) { return(CommerceDataProvider.LoadProvider().GetPurchasesByTransaction(transactionXID)); }
public static List <PaymentService> GetPaymentServiceList() { return(CommerceDataProvider.LoadProvider().GetPaymentServiceList()); }
public static PaymentService GetPaymentService(int paymentServiceID) { return(CommerceDataProvider.LoadProvider().GetPaymentService(paymentServiceID, false)); }
public static void UpdateSueetieProduct(SueetieProduct sueetieProduct) { CommerceDataProvider.LoadProvider().UpdateSueetieProduct(sueetieProduct); CommerceCommon.ClearMarketplaceCache(); }