// BorrowCart/Add
        public ActionResult Add(int id)
        {
            try
            {
                // Adding book to borrow cart
                Book book = bookGateway.SelectById(id);

                /*Book cartBook = new Book();
                 * cartBook.bookTitle = book.bookTitle;
                 * cartBook.bookAuthor = book.bookAuthor;
                 * cartBook.bookGenre = book.bookGenre;
                 * cartBook.bookDesc = book.bookDesc;
                 * cartBook.bookISBN10 = book.bookISBN10;
                 * cartBook.bookISBN13 = book.bookISBN13;
                 * cartBook.bookType = book.bookType;
                 * cartBook.bookImage = book.bookImage;
                 * cartBook.bookLocation = book.bookLocation;
                 * cartBook.bookQuantity = book.bookQuantity;
                 * cartBook.bookAvailability = book.bookAvailability;*/

                //cart.Add(cartBook);
                cart.Add(book);

                return(RedirectToAction("Index"));
            }
            catch
            {
                return(View());
            }
        }