protected void UseVoucher(object sender, EventArgs e) { MarketingLibrary.AddVoucher(txtVoucherCode.Value); TransactionLibrary.ExecuteBasketPipeline(); Response.Redirect(Request.RawUrl); }
public IHttpActionResult AddVoucher(AddVoucherDTO model) { var voucherAdded = MarketingLibrary.AddVoucher(model.VoucherCode); TransactionLibrary.ExecuteBasketPipeline(); return(Json(this.GetBasketModel())); }
public ActionResult Index(String voucher) { MarketingLibrary.AddVoucher(voucher); TransactionLibrary.ExecuteBasketPipeline(); return(Redirect(this.CurrentPage.Url)); }