Exemplo n.º 1
0
        public ActionResult BuyNow()
        {
            var mataikhoan = User.Identity.GetUserId();

            ProductCartBUS.BuyNow(mataikhoan);
            return(RedirectToAction("Index"));
        }
Exemplo n.º 2
0
        public ActionResult AddToCart(int maSanPham)
        {
            var maTaiKhoan = User.Identity.GetUserId();

            ProductCartBUS.AddToCart(maSanPham, maTaiKhoan);
            return(RedirectToAction("Index"));
        }
Exemplo n.º 3
0
 public ActionResult Delete(int id)
 {
     ProductCartBUS.Delete(id);
     return(RedirectToAction("Index"));
 }
Exemplo n.º 4
0
 public ActionResult UpdateMinus(int id, int soLuong)
 {
     ProductCartBUS.UpdateMinus(id, soLuong);
     return(RedirectToAction("Index"));
 }
Exemplo n.º 5
0
 // GET: ProductCart
 public ActionResult Index()
 {
     return(View(ProductCartBUS.ListProductCart(User.Identity.GetUserId())));
 }