Ejemplo n.º 1
0
        /// <summary>
        /// Gets the specified cart.
        /// </summary>
        /// <param name="cart">The cart.</param>
        /// <param name="rendering">The rendering.</param>
        /// <returns>Gets an instance of the CartRenderingModel with initialized Sitecore rendering.</returns>
        public static CartRenderingModel Get(CommerceCart cart, Rendering rendering)
        {
            CartRenderingModel model = new CartRenderingModel(cart);

            model.Initialize(rendering);

            return model;
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Gets the specified cart.
        /// </summary>
        /// <param name="cart">The cart.</param>
        /// <param name="rendering">The rendering.</param>
        /// <returns>Gets an instance of the CartRenderingModel with initialized Sitecore rendering.</returns>
        public static CartRenderingModel Get(CommerceCart cart, Rendering rendering)
        {
            CartRenderingModel model = new CartRenderingModel(cart);

            model.Initialize(rendering);

            return(model);
        }