public ActionResult Empty()
        {
            var c = Shopping.GetCart(this.HttpContext);

            c.Empty();
            return(RedirectToAction("Index"));
        }
        public ActionResult Remove(int id)
        {
            var c = Shopping.GetCart(this.HttpContext);

            c.Remove(id);
            return(RedirectToAction("Index"));
        }
        public ActionResult Add(int id)
        {
            var myBook = db.Books
                         .Single(item => item.BookId == id);


            var c = Shopping.GetCart(this.HttpContext);

            c.Add(myBook);


            return(RedirectToAction("Index"));
        }
        // GET: ShoppingCart
        public ActionResult Index()
        {
            var c = Shopping.GetCart(this.HttpContext);


            var myView = new ShoppingCart
            {
                Books = c.GetBook(),

                Total = c.Total()
            };

            return(View(myView));
        }