コード例 #1
0
 public ActionResult Index(ReceiverViewModel receiver)
 {
     if (ModelState.IsValid)
     {
         //Luu session cho receiver
         SessionHelper.SetReceiverSession(receiver);
         return RedirectToAction("CheckoutByPayPal", "Checkout");
     }
     else
     {
         return View();
     }
 }
コード例 #2
0
 public static void SetReceiverSession(ReceiverViewModel receiver)
 {
     HttpContext.Current.Session["receiver"] = receiver;
 }