From 679c065aaab00a1df2c59858ec62a604079e8109 Mon Sep 17 00:00:00 2001 From: TekH Date: Mon, 15 Dec 2025 13:23:56 +0100 Subject: [PATCH] Refactor CreateRecAction to use domain entities Switched from using RecActionDto to RecAction domain entity in the CreateRecActionCommandHandler and updated relevant imports. This aligns the command handler with domain-driven design principles. --- .../RecActions/Commands/CreateRecActionCommand.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ReC.Application/RecActions/Commands/CreateRecActionCommand.cs b/src/ReC.Application/RecActions/Commands/CreateRecActionCommand.cs index bd2f4c1..3d6e0e0 100644 --- a/src/ReC.Application/RecActions/Commands/CreateRecActionCommand.cs +++ b/src/ReC.Application/RecActions/Commands/CreateRecActionCommand.cs @@ -1,7 +1,7 @@ using DigitalData.Core.Abstraction.Application.Repository; using DigitalData.Core.Exceptions; using MediatR; -using ReC.Application.Common.Dto; +using ReC.Domain.Entities; using ReC.Application.Endpoints.Commands; namespace ReC.Application.RecActions.Commands; @@ -27,7 +27,7 @@ public record CreateRecActionCommand : IRequest public long? EndpointAuthId { get; set; } } -public class CreateRecActionCommandHandler(ISender sender, IRepository repo) : IRequestHandler +public class CreateRecActionCommandHandler(ISender sender, IRepository repo) : IRequestHandler { public async Task Handle(CreateRecActionCommand request, CancellationToken cancel) {