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")); }
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)); }