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