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(); }
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(); }
/// <summary> /// Initializes a new instance of the <see cref="RenderPageViewModel" /> class. /// </summary> public RenderPageViewModel() { Bag = new DynamicDictionary(); }
/// <summary> /// Initializes a new instance of the <see cref="RenderPageViewModel" /> class. /// </summary> public RenderPageViewModel() { Bag = new DynamicDictionary(); RenderedPageContents = new List<Guid>(); }