Пример #1
0
        /// <summary>
        /// 获取广告图片
        /// </summary>
        /// <param name="thumbStyle">显示方式 0=无图</param>
        /// <param name="id">广告Id</param>
        /// <returns></returns>
        private List <string> GetAdvertisementPictures(int thumbStyle, int id)
        {
            if (thumbStyle == 0)
            {
                return(null);
            }

            int resourceType = (int)ResourceTypeEnum.广告图;
            ResourceManagementService resourceService = new ResourceManagementService();

            return(resourceService.GetResources(resourceType, id).Select(y => y.RPath).ToList());
        }