Exemple #1
0
        public ViewResult RemoveLineFromCart(int idItem)
        {
            Item item = CatalogRep.Сatalog
                        .FirstOrDefault(x => x.Id == idItem);

            CartRep.RemoveLine(item);

            ViewBag.ItemType = CatalogRep.Categories;
            return(View("Index", CartRep.Cart));
        }
Exemple #2
0
 //Phương thức khởi tạo
 public CartSvc()
 {
     _rep = new CartRep();
 }
Exemple #3
0
 public CartSvc()
 {
     cartRep = new CartRep();
 }