Exemplo n.º 1
0
 public async Task <ActionResult <Unit> > ChangeSpinStatus(SpinStatusChangeCommand command)
 => await Mediator.Send(command);
Exemplo n.º 2
0
        public async Task <Unit> Handle(SpinStatusChangeCommand request, CancellationToken cancellationToken)
        {
            await _commandRepository.ChangeSpinStatus(request.SpinId, request.SpinStatus);

            return(Unit.Value);
        }