public int RepliesLength { get; set; } = 0;
public int RepliesCount { get; set; } = 0;
public CommentDtoRead_2(ICollection<VoteDto>? Votes, ICollection<ReplyDtoRead_1>? Replies)
{
if(Replies != null && Replies.Count > 0) {
this.RepliesLength = Replies.Count(r => r.DeletedStatus!.Body == "Default");
this.RepliesCount = Replies.Count(r => r.DeletedStatus!.Body == "Default");
}
}
public int RepliesLength { get; set; } = 0;
public int RepliesCount { get; set; } = 0;
public CommentDtoRead_2(ICollection<VoteDto>? Votes, ICollection<ReplyDtoRead_1>? Replies)
{
if(Replies != null && Replies.Count > 0) {
this.RepliesLength = Replies.Count(r => r.DeletedStatus!.Body == "Default");
this.RepliesCount = Replies.Count(r => r.DeletedStatus!.Body == "Default");
}
}