public static void AddUpdateRecentlyViewedItems(SaveCompareItemInfo addUpdateRecentObj, AspxCommonInfo aspxCommonObj)
 {
     try
     {
         AspxRecentViewItemProvider.AddUpdateRecentlyViewedItems(addUpdateRecentObj, aspxCommonObj);
     }
     catch (Exception e)
     {
         throw e;
     }
 }
 public static int SaveCompareItems(SaveCompareItemInfo saveCompareItemObj, AspxCommonInfo aspxCommonObj)
 {
     try
     {
         int compareID = AspxCompareItemProvider.SaveCompareItems(saveCompareItemObj, aspxCommonObj);
         return(compareID);
     }
     catch (Exception e)
     {
         throw e;
     }
 }
Exemple #3
0
 public static void AddUpdateRecentlyViewedItems(SaveCompareItemInfo addUpdateRecentObj, AspxCommonInfo aspxCommonObj)
 {
     try
     {
         List <KeyValuePair <string, object> > parameter = CommonParmBuilder.GetParamNoCID(aspxCommonObj);
         parameter.Add(new KeyValuePair <string, object>("@itemSKU", addUpdateRecentObj.SKU));
         parameter.Add(new KeyValuePair <string, object>("@ViewFromIP", addUpdateRecentObj.IP));
         parameter.Add(new KeyValuePair <string, object>("@ViewedFromCountry", addUpdateRecentObj.CountryName));
         SQLHandler sqlH = new SQLHandler();
         sqlH.ExecuteNonQuery("usp_Aspx_AddRecentlyViewedItems", parameter);
     }
     catch (Exception e)
     {
         throw e;
     }
 }
 public static int SaveCompareItems(SaveCompareItemInfo saveCompareItemObj, AspxCommonInfo aspxCommonObj)
 {
     try
     {
         List <KeyValuePair <string, object> > parameter = CommonParmBuilder.GetParamSPUS(aspxCommonObj);
         parameter.Add(new KeyValuePair <string, object>("@ItemID", saveCompareItemObj.ItemID));
         parameter.Add(new KeyValuePair <string, object>("@CompareItemID", 0));
         parameter.Add(new KeyValuePair <string, object>("@IP", saveCompareItemObj.IP));
         parameter.Add(new KeyValuePair <string, object>("@CountryName", saveCompareItemObj.CountryName));
         parameter.Add(new KeyValuePair <string, object>("@CostVariantValueIDs", saveCompareItemObj.CostVariantIDs));
         SQLHandler sqlH      = new SQLHandler();
         int        compareID = sqlH.ExecuteNonQuery("usp_Aspx_AddItemsToCompare", parameter, "@CompareAddedItemID");
         return(compareID);
     }
     catch (Exception e)
     {
         throw e;
     }
 }