コード例 #1
0
        public ActionResult Packages(string Id)
        {
            Id = StringCipher.Base64Decode(Id);

            ViewBag.Id = Id;

            return(View());
        }
コード例 #2
0
 public ActionResult Login(string Id, string err = "")
 {
     if (sessiondto.getName() == null)
     {
         ViewBag.message = err;
         ViewBag.Id      = StringCipher.Base64Decode(Id);
         return(View());
     }
     else
     {
         return(RedirectToAction("Index", "Home"));
     }
 }
コード例 #3
0
        public ActionResult Signup(string package = "")
        {
            if (package == "")
            {
                return(RedirectToAction("GetStarted", "Home"));
            }
            else
            {
                package = StringCipher.Base64Decode(package);

                BrainTreePayment payment = new BrainTreePayment();
                ViewBag.package = package;
                return(View());
            }
        }
コード例 #4
0
        public ActionResult Product(string Id)
        {
            Id = StringCipher.Base64Decode(Id);

            Product p = new UserBL().getProductById(Convert.ToInt32(Id));

            if (p != null)
            {
                string path = p.Images.FirstOrDefault().Path;
                ViewBag.path = path;
            }

            ViewBag.product = p;

            return(View());
        }