2009-12-02 00:50:38 +00:00
|
|
|
using System.Collections.Generic;
|
2009-12-24 04:49:43 +00:00
|
|
|
using System.ComponentModel.DataAnnotations;
|
2009-12-02 00:50:38 +00:00
|
|
|
using System.Linq;
|
2009-12-21 20:29:53 +00:00
|
|
|
using Orchard.ContentManagement;
|
2009-12-02 00:50:38 +00:00
|
|
|
|
|
|
|
|
namespace Orchard.Comments.Models {
|
2009-12-24 04:49:43 +00:00
|
|
|
public class HasComments : ContentPart<HasCommentsRecord> {
|
2010-01-22 02:06:07 +00:00
|
|
|
public HasComments() {
|
|
|
|
|
Comments = new List<Comment>();
|
|
|
|
|
PendingComments = new List<Comment>();
|
|
|
|
|
}
|
2009-12-24 04:49:43 +00:00
|
|
|
|
2010-01-22 02:06:07 +00:00
|
|
|
public IList<Comment> Comments { get; set; }
|
|
|
|
|
public IList<Comment> PendingComments { get; set; }
|
2009-12-24 04:49:43 +00:00
|
|
|
|
|
|
|
|
public bool CommentsShown {
|
|
|
|
|
get { return Record.CommentsShown; }
|
|
|
|
|
set { Record.CommentsShown = value; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public bool CommentsActive {
|
|
|
|
|
get { return Record.CommentsActive; }
|
|
|
|
|
set { Record.CommentsActive = value; }
|
|
|
|
|
}
|
|
|
|
|
}
|
2009-12-02 00:50:38 +00:00
|
|
|
}
|