Exemple #1
0
        public List <ArticleEntity> GetArticlesByCondition(string KeyName)
        {
            BaseSetDA da     = new BaseSetDA();
            var       result = da.GetArticlesByCondition(KeyName);

            if (result != null && result.Count > 0)
            {
                foreach (var item in result)
                {
                    //item.ImageUrl = CommonHelper.LinkImageUrl(item.ImageUrl);
                    item.ArticleType = new BaseSetBC().GetDicItemValueByKey(item.ArticleType, DictionaryConstant.ArticleKey).ItemValue;
                }
            }
            return(result);
        }