public static void AddUpdatPromoCode(PromoCodeSaveObj promoSaveObj, AspxCommonInfo aspxCommonObj) { try { AspxCouponManageProvider.AddUpdatePromoCode(promoSaveObj, aspxCommonObj); } catch (Exception ex) { throw ex; } }
public static void AddUpdatePromoCode(PromoCodeSaveObj promoCodeObj, AspxCommonInfo aspxCommonObj) { try { List <KeyValuePair <string, object> > parameter = CommonParmBuilder.GetParamSPUC(aspxCommonObj); parameter.Add(new KeyValuePair <string, object>("@CouponID", promoCodeObj.CouponID)); parameter.Add(new KeyValuePair <string, object>("@CouponTypeID", promoCodeObj.CouponTypeID)); parameter.Add(new KeyValuePair <string, object>("@CouponCode", promoCodeObj.CouponCode)); parameter.Add(new KeyValuePair <string, object>("@CouponAmount", promoCodeObj.CouponAmount)); parameter.Add(new KeyValuePair <string, object>("@IsPercentage", promoCodeObj.IsPercentage)); parameter.Add(new KeyValuePair <string, object>("@ValidateFrom", promoCodeObj.ValidateFrom)); parameter.Add(new KeyValuePair <string, object>("@ValidateTo", promoCodeObj.ValidateTo)); parameter.Add(new KeyValuePair <string, object>("@IsActive", promoCodeObj.IsActive)); parameter.Add(new KeyValuePair <string, object>("@SettingIDs", promoCodeObj.SettingIDs)); parameter.Add(new KeyValuePair <string, object>("@SettingValues", promoCodeObj.SettingValues)); parameter.Add(new KeyValuePair <string, object>("@PromoItems", promoCodeObj.PromoItems)); SQLHandler sqlH = new SQLHandler(); sqlH.ExecuteNonQuery("dbo.usp_Aspx_AddUpdatePromoCode", parameter); } catch (Exception ex) { throw ex; } }
public void AddUpdatePromoCodeDetails(PromoCodeSaveObj promoSaveObj, AspxCommonInfo aspxCommonObj) { try { AspxCouponManageController.AddUpdatPromoCode(promoSaveObj, aspxCommonObj); } catch (Exception ex) { throw ex; } }
public static void AddUpdatePromoCode(PromoCodeSaveObj promoCodeObj, AspxCommonInfo aspxCommonObj) { try { List<KeyValuePair<string, object>> parameter = CommonParmBuilder.GetParamSPUC(aspxCommonObj); parameter.Add(new KeyValuePair<string, object>("@CouponID", promoCodeObj.CouponID)); parameter.Add(new KeyValuePair<string, object>("@CouponTypeID", promoCodeObj.CouponTypeID)); parameter.Add(new KeyValuePair<string, object>("@CouponCode", promoCodeObj.CouponCode)); parameter.Add(new KeyValuePair<string, object>("@CouponAmount", promoCodeObj.CouponAmount)); parameter.Add(new KeyValuePair<string, object>("@IsPercentage", promoCodeObj.IsPercentage)); parameter.Add(new KeyValuePair<string, object>("@ValidateFrom", promoCodeObj.ValidateFrom)); parameter.Add(new KeyValuePair<string, object>("@ValidateTo", promoCodeObj.ValidateTo)); parameter.Add(new KeyValuePair<string, object>("@IsActive", promoCodeObj.IsActive)); parameter.Add(new KeyValuePair<string, object>("@SettingIDs", promoCodeObj.SettingIDs)); parameter.Add(new KeyValuePair<string, object>("@SettingValues", promoCodeObj.SettingValues)); parameter.Add(new KeyValuePair<string, object>("@PromoItems", promoCodeObj.PromoItems)); SQLHandler sqlH = new SQLHandler(); sqlH.ExecuteNonQuery("dbo.usp_Aspx_AddUpdatePromoCode", parameter); } catch (Exception ex) { throw ex; } }