using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace GreenTree.Nachtragsmanagement.Core.Domain.Misc
{
    public class HelpPage : BaseEntity
    {
        #region Fields

        /// <summary>
        /// HelpPages related to the helpPage
        /// </summary>
        private ICollection<HelpPage> _children;

        #endregion

        public string Title { get; set; }
        public int? ParentId { get; set; }
        public virtual HelpPage Parent { get; set; }
        public string Content { get; set; }
        public int DisplayIndex { get; set; }
        public virtual ICollection<HelpPage> Children
        {
            get { return _children ?? (_children = new List<HelpPage>()); }
            set { _children = value; }
        }
    }
}
