public async Task <ActionResult <Unit> > ChangeSpinStatus(SpinStatusChangeCommand command) => await Mediator.Send(command);
public async Task <Unit> Handle(SpinStatusChangeCommand request, CancellationToken cancellationToken) { await _commandRepository.ChangeSpinStatus(request.SpinId, request.SpinStatus); return(Unit.Value); }