Пример #1
0
        public string RootUrl()
        {
            // Individual Mode
            if (WebAppSettings.IsIndividualMode)
            {
                return(WebAppSettings.BaseApplicationUrl);
            }

            // Multi Mode
            string result = string.Empty;

            if (this.HasCustomUrl)
            {
                result = "http://" + this.CustomUrl + "/";
            }
            else
            {
                result = StoreName;
                if (!StoreName.StartsWith("http"))
                {
                    result = WebAppSettings.BaseApplicationUrl.Replace("www", StoreName);
                }
            }
            return(result);
        }