public ActionResult RemoveFromCart(int id) { var book = new ENNewBook(); var nbook = book.Read(id); ShoppingCart.Instance.RemoveItem(nbook); return(RedirectToAction("Cart")); }
public void NewBookVerifyingPrice() { var newBook = new ENNewBook(); newBook = newBook.Read(1); var price = newBook.Price; //used to fail casting }