예제 #1
0
        private string GetLocalContent(UrlStoreModel firstUrl)
        {
            if (firstUrl == null)
            {
                return(null);
            }

            string htmlContent = null;

            if (firstUrl.IsLocalization())
            {
                _fileOperate.Read(this._ruleConfig.Url, firstUrl.localFileName);
                if (_fileOperate.IsExists())
                {
                    htmlContent = _fileOperate.GetHtml();
                }
            }

            return(htmlContent);
        }