Api/Netina.Domain/Dtos/SmallDtos/CommentSDto.cs

20 lines
685 B
C#
Raw Normal View History

2024-09-24 00:34:53 +03:30
using Netina.Domain.Entities.Comments;
namespace Netina.Domain.Dtos.SmallDtos;
public class CommentSDto : BaseDto<CommentSDto, Comment>
{
public string Title { get; set; } = string.Empty;
public string Content { get; set; } = string.Empty;
public string FullName { get; set; } = string.Empty;
public string Email { get; set; } = string.Empty;
public string PhoneNumber { get; set; } = string.Empty;
public bool IsConfirmed { get; set; }
public Guid ParentId { get; set; }
public Guid UserId { get; set; }
public string UserFullName { get; set; } = string.Empty;
[AdaptIgnore]
public List<CommentSDto> Children { get; set; } = new();
}