// GET: Painting/Details/5
        public ActionResult Details(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            Painting painting = PaintingServ.GetPainting(id);

            if (painting == null)
            {
                return(HttpNotFound());
            }
            return(View(painting));
        }
        // GET: PayPal/AddToCart/

        public ActionResult AddToCart(int PaintingID)
        {
            List <Item> CartList = Session["CartList"] as List <Item>;


            //Check if Session Was Empty
            if (CartList == null)
            {
                CartList = new List <Item>();
            }
            Painting painting = ServicePainting.GetPainting(PaintingID);
            Item     item     = new Item()
            {
                name        = painting.PaintingTitle.ToString(),
                currency    = "USD",
                price       = painting.Price.ToString(),
                quantity    = "1",
                sku         = "sku",
                description = painting.PaintingId.ToString()
            };

            AddOrUpdateCart(CartList, item);

            Session["CartList"] = CartList;
            return(View("Index", CartList));
        }