22 lines
418 B
C#
22 lines
418 B
C#
using System;
|
|
using System.ComponentModel.DataAnnotations;
|
|
using HN.Domain;
|
|
using MediatR;
|
|
|
|
namespace HN.Application
|
|
{
|
|
public sealed class VoteForCommentCommand : IRequest
|
|
{
|
|
[Required]
|
|
public Guid CommentId { get; set; }
|
|
|
|
[Required]
|
|
public VoteType Type { get; set; }
|
|
|
|
public VoteForCommentCommand(Guid commentId, VoteType type)
|
|
{
|
|
CommentId = commentId;
|
|
Type = type;
|
|
}
|
|
}
|
|
} |