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