diff --git a/src/ReC.API/Controllers/ActionController.cs b/src/ReC.API/Controllers/ActionController.cs index 5e03d86..6070956 100644 --- a/src/ReC.API/Controllers/ActionController.cs +++ b/src/ReC.API/Controllers/ActionController.cs @@ -1,15 +1,17 @@ -using Microsoft.AspNetCore.Mvc; +using MediatR; +using Microsoft.AspNetCore.Mvc; +using ReC.Application.RecActions.Commands; namespace ReC.API.Controllers; [Route("api/[controller]")] [ApiController] -public class ActionController : ControllerBase +public class ActionController(IMediator mediator) : ControllerBase { [HttpPost("{profileId}")] - public Task Invoke([FromRoute] int profileId) + public async Task Invoke([FromRoute] int profileId) { - // Implementation for retrieving actions would go here. - throw new NotImplementedException(); + await mediator.InvokeRecAction(profileId); + return Accepted(); } } \ No newline at end of file