add logic to read actions

This commit is contained in:
Developer 02
2025-11-26 17:17:32 +01:00
parent 59152a5621
commit dcd399a92e

View File

@@ -1,5 +1,4 @@
using AutoMapper; using MediatR;
using MediatR;
using ReC.Application.RecActions.Queries; using ReC.Application.RecActions.Queries;
namespace ReC.Application.RecActions.Commands; namespace ReC.Application.RecActions.Commands;
@@ -13,3 +12,11 @@ public static class InvokeRecActionCommandExtensions
public static Task InvokeRecAction(this ISender sender, int profileId) public static Task InvokeRecAction(this ISender sender, int profileId)
=> sender.Send(new InvokeRecActionCommand { ProfileId = profileId }); => sender.Send(new InvokeRecActionCommand { ProfileId = profileId });
} }
public class InvokeRecActionCommandHandler(ISender sender) : IRequestHandler<InvokeRecActionCommand>
{
public async Task Handle(InvokeRecActionCommand request, CancellationToken cancel)
{
var actions = await sender.Send(request as ReadRecActionQuery, cancel);
}
}