add logic to read actions
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
using AutoMapper;
|
||||
using MediatR;
|
||||
using MediatR;
|
||||
using ReC.Application.RecActions.Queries;
|
||||
|
||||
namespace ReC.Application.RecActions.Commands;
|
||||
@@ -12,4 +11,12 @@ public static class InvokeRecActionCommandExtensions
|
||||
{
|
||||
public static Task InvokeRecAction(this ISender sender, int 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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user