示例#1
0
 public virtual bool WasChanged(CommentModel comment)
 {
     return(comment.CreatedDate != comment.ModifyDate);
 }
示例#2
0
 public virtual bool IsReply(CommentModel comment)
 {
     return(comment.ParentId.HasValue);
 }
示例#3
0
 public virtual bool CanDelete(CommentModel comment, Guid editorId)
 {
     return(comment.UserId == editorId);
 }