public static CouponVerificationInfo VerifyUserCoupon(decimal totalCost, string couponCode, string itemIds, string cartItemIds, AspxCommonInfo aspxCommonObj, int appliedCount) { List <KeyValuePair <string, object> > parameter = CommonParmBuilder.GetParamSPU(aspxCommonObj); parameter.Add(new KeyValuePair <string, object>("@totalCost", totalCost)); parameter.Add(new KeyValuePair <string, object>("@CouponCode", couponCode)); parameter.Add(new KeyValuePair <string, object>("@ItemIDs", itemIds)); parameter.Add(new KeyValuePair <string, object>("@CartItemIDs", cartItemIds)); parameter.Add(new KeyValuePair <string, object>("@AppliedCount", appliedCount)); SQLHandler sqlH = new SQLHandler(); CouponVerificationInfo lstCoupVeri = sqlH.ExecuteAsObject <CouponVerificationInfo>("[usp_Aspx_VerifyCouponCode]", parameter); return(lstCoupVeri); }
public static CouponVerificationInfo VerifyUserCoupon(decimal totalCost, string couponCode, string itemIds, string cartItemIds, AspxCommonInfo aspxCommonObj, int appliedCount) { try { List <KeyValuePair <string, object> > parameter = CommonParmBuilder.GetParamSPU(aspxCommonObj); parameter.Add(new KeyValuePair <string, object>("totalCost", totalCost)); parameter.Add(new KeyValuePair <string, object>("CouponCode", couponCode)); parameter.Add(new KeyValuePair <string, object>("ItemIDs", itemIds)); parameter.Add(new KeyValuePair <string, object>("CartItemIDs", cartItemIds)); parameter.Add(new KeyValuePair <string, object>("iv_AppliedCount", appliedCount)); OracleHandler sqlH = new OracleHandler(); CouponVerificationInfo lstCoupVeri = sqlH.ExecuteAsObject <CouponVerificationInfo>("usp_Aspx_VerifyCouponCode", parameter); return(lstCoupVeri); } catch (Exception ex) { throw ex; } }
public static CouponVerificationInfo VerifyUserCoupon(decimal totalCost, string couponCode, string itemIds, string cartItemIds, AspxCommonInfo aspxCommonObj, int appliedCount) { CouponVerificationInfo objCoupVeri = AspxCouponManageProvider.VerifyUserCoupon(totalCost, couponCode, itemIds, cartItemIds, aspxCommonObj, appliedCount); return(objCoupVeri); }