예제 #1
0
        public async Task <IActionResult> ChangeStatus([FromBody] ChangeStatusTaskCommand command)
        {
            await Mediator.Send(command);

            return(NoContent());
        }
예제 #2
0
        public async Task <OperationResult <Domain.Commands.Entities.Task> > ChangeStatus(int id, [FromBody] ChangeStatusTaskCommand command)
        {
            command.Id = id;
            var result = await _lubyTasksHandler.ExecuteAsync(command);

            return(result);
        }