Пример #1
0
        public ActionResult RemoveFromCart(int id)
        {
            var book  = new ENNewBook();
            var nbook = book.Read(id);

            ShoppingCart.Instance.RemoveItem(nbook);
            return(RedirectToAction("Cart"));
        }
Пример #2
0
        public void NewBookVerifyingPrice()
        {
            var newBook = new ENNewBook();

            newBook = newBook.Read(1);
            var price = newBook.Price;
            //used to fail casting
        }