Пример #1
0
        public ActionResult Huydonhang(string maDH)
        {
            DonHangModel dh = new DonHangModel();

            dh.HuyDH(maDH);
            var  userid = (Userlogin)Session[Commonconst.USER_SESSION];
            long makh   = userid.UserId;
            var  item   = dh.xemdonhang(makh);

            return(RedirectToAction("Xemdonhang"));
        }
Пример #2
0
        public ActionResult Xemdonhang()
        {
            List <DonHangModel> dh = new List <DonHangModel>();
            var  userid            = (Userlogin)Session[Commonconst.USER_SESSION];
            long makh = userid.UserId;

            if (makh > 0)
            {
                DonHangModel temp = new DonHangModel();
                dh = temp.xemdonhang(makh);
            }
            else
            {
                return(Redirect("/"));
            }
            return(View(dh));
        }