Beispiel #1
0
        public ActionResult Address()
        {
            int       userid = Convert.ToInt32(Session["User_id"]);
            var       adduse = AddressManage.seuseadd(userid);
            MallsCart ind    = new MallsCart();

            ind.Address1 = adduse;
            return(View(ind));
        }
Beispiel #2
0
        public ActionResult SelectOrder()
        {
            int       userid = Convert.ToInt32(Session["User_id"]);
            var       ordert = CartManage.finallorder(userid).OrderByDescending(o => o.OrderTime).Where(u => u.Site_id == 2).Take(1);
            var       orde   = AddressManage.selectaaduse(userid);
            MallsCart ind    = new MallsCart();

            ind.Order1   = ordert;
            ind.Address4 = orde;
            return(View(ind));
        }
Beispiel #3
0
        // GET: Order
        public ActionResult Index()
        {
            int     userid = Convert.ToInt32(Session["User_id"]);
            var     cart   = CartManage.Findusercart(userid).Where(p => p.Flog == true);
            decimal sum    = 0;
            decimal a;

            foreach (var item in cart)
            {
                var sdsd = cart.FirstOrDefault(p => p.Cart_id == item.Cart_id);
                if (sdsd != null)
                {
                    a   = sdsd.Total;
                    sum = sum + a;
                }
            }
            ViewBag.count = sum;
            var       orde = AddressManage.selectaaduse(userid);
            MallsCart ind  = new MallsCart();

            ind.Carts2   = cart;
            ind.Address2 = orde;
            return(View(ind));
        }