hn-dotnet/Application/CommentLink/CommentLinkCommand.cs
2020-12-11 09:39:38 +01:00

26 lines
461 B
C#

using System;
using System.ComponentModel.DataAnnotations;
using MediatR;
namespace HN.Application
{
public sealed class CommentLinkCommand : IRequest<Guid>
{
[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)
{
LinkId = linkId;
}
}
}