示例#1
0
        /// <summary>
        /// Grants the possibility to remove films from the shoppingcart.
        /// </summary>
        /// <param name="id">The film id to be removed.</param>
        /// <seealso cref="OrderBLL.RemoveFilm"/>
        /// <returns>Viewet ShoppingCart.cshtml</returns>
        public ActionResult RemoveFilmFromShoppingCart(int id)
        {
            var chosenFilmIdList = (List <int>)Session["ShoppingCart"];

            Session["ShoppingCart"] = _ordreBLL.RemoveFilm(chosenFilmIdList, id);
            return(RedirectToAction("ShoppingCart"));
        }