Ejemplo n.º 1
0
        public ActionResult ThankYou(int id = 0)
        {
            tbl_Orders tbl_orders = db.tbl_Orders.Find(id);

            if (tbl_orders == null)
            {
                if (tbl_orders == null)
                {
                    return(HttpNotFound());
                }
            }
            var cus = new laca.Models.lacashop_dbEntities().tbl_Customers.Find(tbl_orders.CustomerID);

            ViewBag.cusName            = cus.CustomerName;
            Session[Session.SessionID] = null;

            //return View(tbl_orders);
            return(View());
        }
Ejemplo n.º 2
0
        public ActionResult ThankYou(int id = 0)
        {
            tbl_Orders tbl_orders = db.tbl_Orders.Find(id);
            if (tbl_orders == null)
            {
                if (tbl_orders == null)
                {
                    return HttpNotFound();
                }
            }
            var cus = new laca.Models.lacashop_dbEntities().tbl_Customers.Find(tbl_orders.CustomerID);
            ViewBag.cusName = cus.CustomerName;
            Session[Session.SessionID] = null;

            //return View(tbl_orders);
            return View();
        }