コード例 #1
0
        public RenderPageViewModel(IPage page)
        {
            Id = page.Id;
            IsDeleted = page.IsDeleted;
            Version = page.Version;
            HasSEO = page.HasSEO;
            Title = page.Title;
            PageUrl = page.PageUrl;
            Status = page.Status;
            CreatedOn = page.CreatedOn;
            CreatedByUser = page.CreatedByUser;
            ModifiedOn = page.ModifiedOn;
            ModifiedByUser = page.ModifiedByUser;

            Bag = new DynamicDictionary();
        }
コード例 #2
0
        public RenderPageViewModel(IPage page)
        {
            var rootPage = page as Page;

            Id = page.Id;
            IsDeleted = page.IsDeleted;
            Version = page.Version;
            HasSEO = page.HasSEO;
            Title = page.Title;
            MetaTitle = rootPage != null && !string.IsNullOrEmpty(rootPage.MetaTitle) ? rootPage.MetaTitle : Title;
            PageUrl = page.PageUrl;
            Status = page.Status;
            CreatedOn = page.CreatedOn;
            CreatedByUser = page.CreatedByUser;
            ModifiedOn = page.ModifiedOn;
            ModifiedByUser = page.ModifiedByUser;

            Bag = new DynamicDictionary();
        }
コード例 #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="RenderPageViewModel" /> class.
 /// </summary>
 public RenderPageViewModel()
 {
     Bag = new DynamicDictionary();
 }
コード例 #4
0
        /// <summary>
        /// Initializes a new instance of the <see cref="RenderPageViewModel" /> class.
        /// </summary>
        public RenderPageViewModel()
        {
            Bag = new DynamicDictionary();

            RenderedPageContents = new List<Guid>();
        }