diff --git a/src/ReC.Application/Common/Dto/RecActionDto.cs b/src/ReC.Application/Common/Dto/RecActionDto.cs index 71bdedd..717b350 100644 --- a/src/ReC.Application/Common/Dto/RecActionDto.cs +++ b/src/ReC.Application/Common/Dto/RecActionDto.cs @@ -1,6 +1,6 @@ namespace ReC.Application.Common.Dto; -public class RecActionDto +public record RecActionDto { public long? ActionId { get; init; } diff --git a/src/ReC.Application/RecActions/Commands/InvokeRecActionCommand.cs b/src/ReC.Application/RecActions/Commands/InvokeRecActionCommand.cs new file mode 100644 index 0000000..2821435 --- /dev/null +++ b/src/ReC.Application/RecActions/Commands/InvokeRecActionCommand.cs @@ -0,0 +1,20 @@ +using ReC.Application.Common.Dto; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace ReC.Application.RecActions.Commands; + +public record InvokeRecActionCommand : RecActionDto +{ + public InvokeRecActionCommand(RecActionDto root) : base(root) { } + + public InvokeRecActionCommand() { } +} + +public static class InvokeRecActionCommandExtensions +{ + public static InvokeRecActionCommand ToInvokeCommand(this RecActionDto dto) => new(dto); +}