hn-dotnet/Application/CommentLink/CommentLinkCommand.cs
Julien Leicher 66cc78d30e comment-a-link (#24)
Closes #23 refactor to use OwnsMany
2020-12-11 09:46:42 +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;
}
}
}