UpdateTemplate() public method

public UpdateTemplate ( int templateId ) : void
templateId int
return void
コード例 #1
0
ファイル: ContentGroupManager.cs プロジェクト: yonglehou/2sxc
        public Guid UpdateOrCreateContentGroup(ContentGroup contentGroup, int templateId)
        {
            if (!contentGroup.Exists)
            {
                return(CreateNewContentGroup(templateId));
            }

            contentGroup.UpdateTemplate(templateId);
            return(contentGroup.ContentGroupGuid);
        }
コード例 #2
0
ファイル: ContentGroupManager.cs プロジェクト: 2sic/2sxc
        public Guid UpdateOrCreateContentGroup(ContentGroup contentGroup, int templateId)
        {
            if (!contentGroup.Exists)
                return CreateNewContentGroup(templateId);

            contentGroup.UpdateTemplate(templateId);
            return contentGroup.ContentGroupGuid;
        }