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