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

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

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

            return(cartViewModel);
        }