From 289b6109e46af754964fb18cbce591a0f984e6ac Mon Sep 17 00:00:00 2001 From: TekH Date: Mon, 15 Dec 2025 13:24:11 +0100 Subject: [PATCH] Refactor DeleteRecActionsCommand to use RecAction entity Switched from using RecActionDto to RecAction entity in the DeleteRecActionsCommandHandler and updated repository types and using statements accordingly. This aligns the handler with domain-driven design and improves consistency. --- .../RecActions/Commands/DeleteRecActionsCommand.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ReC.Application/RecActions/Commands/DeleteRecActionsCommand.cs b/src/ReC.Application/RecActions/Commands/DeleteRecActionsCommand.cs index 6f4b331..84e52d9 100644 --- a/src/ReC.Application/RecActions/Commands/DeleteRecActionsCommand.cs +++ b/src/ReC.Application/RecActions/Commands/DeleteRecActionsCommand.cs @@ -2,7 +2,7 @@ using DigitalData.Core.Exceptions; using MediatR; using Microsoft.EntityFrameworkCore; -using ReC.Application.Common.Dto; +using ReC.Domain.Entities; namespace ReC.Application.RecActions.Commands; @@ -11,7 +11,7 @@ public class DeleteRecActionsCommand : IRequest public required long ProfileId { get; init; } } -public class DeleteRecActionsCommandHandler(IRepository repo) : IRequestHandler +public class DeleteRecActionsCommandHandler(IRepository repo) : IRequestHandler { public async Task Handle(DeleteRecActionsCommand request, CancellationToken cancel) {