using System; using System.ComponentModel.DataAnnotations; using MediatR; namespace HN.Application { public sealed class CommentLinkCommand : IRequest { [Required] public Guid LinkId { get; set; } [Required] public string Content { get; set; } // Constructeur vide nécessaire pour le model binding public CommentLinkCommand() { } public CommentLinkCommand(Guid linkId, string content = null) { LinkId = linkId; Content = content; } } }