Exemplo n.º 1
0
 public void clearPayment()
 {
     this.cardInfo = new cardInfo();
     this.transferInfo = new transferInfo();
     this.paymentOptionChoose = paymentOption.noAnswer;
 }
Exemplo n.º 2
0
        public ActionResult Transfer(bool isModal)
        {
            checkoutProcess checkoutItem = (checkoutProcess)Session["checkoutProcess"];
            checkoutShared cs = new checkoutShared(db);
            transferInfo helperPage = new transferInfo();

            helperPage.eftList = cs.getEftList(langId);
            helperPage.selectedTransferId = checkoutItem.transferInfo.selectedTransferId;

            // Bind Post Error
            if (TempData["errorMessage"] != null)
            {
                helperPage.isMessageExist = true;
                helperPage.message = TempData["errorMessage"].ToString();
            }

            if (isModal)
            {
                string html = RenderRazorViewToString("Transfer", helperPage);
                return Json(new { html = html }, JsonRequestBehavior.AllowGet);
            }
            else
            {
                return View(helperPage);
            }
        }