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