Esempio n. 1
0
        public void UpdateForContentItem(ContentItem item)
        {
            var articlePart = item.As <ArticlePart>();
            var bodyPart    = item.As <BodyPart>();

            if (bodyPart != null)
            {
                articlePart.Summary = string.IsNullOrWhiteSpace(articlePart.Summary) ? Utity.DropHtml(bodyPart.Text, 255) : articlePart.Summary;
            }
            articlePart.ColumnPartRecord = ColumnRepository.Get(d => d.Id == articlePart.ColumnPartRecordId);
            ArticleRepository.Flush();
        }