Ejemplo n.º 1
0
        public IActionResult RemoveOrder(string id)
        {
            ChiTietGioHangViewModel query_ctdh = new ChiTietGioHangViewModel(db);

            query_ctdh.DeleteChiTietGioHangByCartId(id);
            GioHangViewModel query_dh = new GioHangViewModel(db);

            query_dh.DeleteGioHangById(id);
            return(RedirectToAction("Index"));
        }