/// <summary> /// The default contstructor assign default values. /// </summary> public Post() { base.Id = Guid.NewGuid(); _Comments = new List <Comment>(); _Categories = new StateList <Category>(); _Tags = new StateList <string>(); DateCreated = DateTime.Now; _IsPublished = true; _IsCommentsEnabled = true; }
/// <summary> /// Initializes a new instance of the <see cref = "Post" /> class. /// The default contstructor assign default values. /// </summary> public Post() { this.Id = Guid.NewGuid(); this.allcomments = new List <Comment>(); this.categories = new StateList <Category>(); this.tags = new StateList <string>(); this.notificationEmails = new StateList <string>(); this.DateCreated = DateTime.Now; this.isPublished = true; this.hasCommentsEnabled = true; }