diff --git a/src/ReC.Application/RecActions/Commands/InvokeRecActionCommand.cs b/src/ReC.Application/RecActions/Commands/InvokeRecActionCommand.cs index 6fed4da..cd5a4be 100644 --- a/src/ReC.Application/RecActions/Commands/InvokeRecActionCommand.cs +++ b/src/ReC.Application/RecActions/Commands/InvokeRecActionCommand.cs @@ -5,4 +5,10 @@ namespace ReC.Application.RecActions.Commands; public class InvokeRecActionCommand : IRequest { public int ProfileId { get; init; } +} + +public static class InvokeRecActionCommandExtensions +{ + public static Task InvokeRecAction(this ISender sender, int profileId) + => sender.Send(new InvokeRecActionCommand { ProfileId = profileId }); } \ No newline at end of file