Example #1
0
 public static HeavyDiscountSettingInfo GetHeavyDiscountSetting(AspxCommonInfo aspxCommonObj)
 {
     try
     {
         HeavyDiscountSettingInfo objHDSetting = AspxHeavyDiscountProvider.GetHeavyDiscountSetting(aspxCommonObj);
         return(objHDSetting);
     }
     catch (Exception e)
     {
         throw e;
     }
 }
Example #2
0
        public static void SetDiscountSetting(HeavyDiscountSettingInfo heavy)
        {
            List <KeyValuePair <string, object> > parameterCollection = new List <KeyValuePair <string, object> >();

            parameterCollection.Add(new KeyValuePair <string, object>("@StoreID", heavy.StoreID));
            parameterCollection.Add(new KeyValuePair <string, object>("@portalID", heavy.PortalID));
            parameterCollection.Add(new KeyValuePair <string, object>("@CultureName", heavy.CultureName));
            parameterCollection.Add(new KeyValuePair <string, object>("@EnableModule", heavy.EnableModule));
            parameterCollection.Add(new KeyValuePair <string, object>("@NoOfItemShown", heavy.NoOfItemShown));
            parameterCollection.Add(new KeyValuePair <string, object>("@DiscountValue", heavy.DiscountValue));
            SQLHandler sqlhandle = new SQLHandler();

            sqlhandle.ExecuteNonQuery("usp_Aspx_UpdateHeavyDiscountSettings", parameterCollection);
        }
Example #3
0
 public static HeavyDiscountSettingInfo GetHeavyDiscountSetting(AspxCommonInfo aspxCommonObj)
 {
     try
     {
         List <KeyValuePair <string, object> > parameterCollection = CommonParmBuilder.GetParamSPC(aspxCommonObj);
         SQLHandler sqlHandle = new SQLHandler();
         HeavyDiscountSettingInfo objHDSetting = sqlHandle.ExecuteAsObject <HeavyDiscountSettingInfo>("usp_Aspx_GetHeavyDiscountSettings", parameterCollection);
         return(objHDSetting);
     }
     catch (Exception e)
     {
         throw e;
     }
 }
Example #4
0
 public static void SetDiscountSetting(HeavyDiscountSettingInfo heavy)
 {
     AspxHeavyDiscountProvider.SetDiscountSetting(heavy);
 }