Example #1
0
        /// <summary>
        /// Converts specified customer to shopping cart model.
        /// </summary>
        /// <param name="customer">The customer.</param>
        /// <param name="storeName">The name of the store.</param>
        /// <returns>
        /// Instance of <see cref="ShoppingCartModel" />
        /// </returns>
        protected ShoppingCartModel GetModel(Customer customer, string storeName = null)
        {
            var model = new ShoppingCartModel();

            model.Map(customer, this.CartType, storeName);

            return(model);
        }