public GenericCommandResult MarkAsUndone( [FromBody] MarkTodoAsUndoneCommand command, [FromServices] MarkTodoAsUndoneHandler handler, Guid id ) { if (id != command.Id) { return(new GenericCommandResult(false, "Id não encontrado", false)); } var user = User.Claims.FirstOrDefault(x => x.Type == "user_id")?.Value; command.User = user; return((GenericCommandResult)handler.Handle(command)); }