diff --git a/src/ReC.Application/RecActions/Commands/CreateRecActionCommand.cs b/src/ReC.Application/RecActions/Commands/CreateRecActionCommand.cs index c074fae..e83ef01 100644 --- a/src/ReC.Application/RecActions/Commands/CreateRecActionCommand.cs +++ b/src/ReC.Application/RecActions/Commands/CreateRecActionCommand.cs @@ -1,6 +1,8 @@ -using DigitalData.Core.Exceptions; +using DigitalData.Core.Abstraction.Application.Repository; +using DigitalData.Core.Exceptions; using MediatR; using ReC.Application.Endpoints.Commands; +using ReC.Domain.Entities; namespace ReC.Application.RecActions.Commands; @@ -21,7 +23,7 @@ public record CreateRecActionCommand : IRequest public string BodyQuery { get; init; } = null!; } -public class CreateRecActionCommandHandler(ISender sender) : IRequestHandler +public class CreateRecActionCommandHandler(ISender sender, IRepository repo) : IRequestHandler { public async Task Handle(CreateRecActionCommand request, CancellationToken cancel) { @@ -33,5 +35,7 @@ public class CreateRecActionCommandHandler(ISender sender) : IRequestHandler