Example #1
0
        protected virtual void SetHomepageUrl(CartViewModel cartViewModel, BaseUrlParameter getUrlParam)
        {
            if (cartViewModel != null)
            {
                var homepageUrl = CartUrlProvider.GetHomepageUrl(getUrlParam);

                cartViewModel.HomepageUrl = homepageUrl;
            }
        }
Example #2
0
        protected virtual string GetHomepageUrl()
        {
            var homepageUrl = CartUrlProvider.GetHomepageUrl(new BaseUrlParameter
            {
                CultureInfo = ComposerContext.CultureInfo
            });

            return(homepageUrl);
        }
Example #3
0
        protected virtual CartViewModel GetCartViewModel()
        {
            var cartViewModel = new CartViewModel
            {
                IsLoading   = true,
                HomepageUrl = CartUrlProvider.GetHomepageUrl(new BaseUrlParameter
                {
                    CultureInfo = ComposerContext.CultureInfo
                })
            };

            return(cartViewModel);
        }