예제 #1
0
 public virtual bool CanDelete()
 {
     //TODO : add condition if comment creator == current user or admin
     return(Replies.All(el => el.IsDeleted));
 }
예제 #2
0
 public virtual bool CanWrite()
 {
     return(Replies.All(el => el.IsDeleted) && !IsDeleted);
 }