Пример #1
0
 public async Task <ActionResult <Unit> > ChangeSpinStatus(SpinStatusChangeCommand command)
 => await Mediator.Send(command);
Пример #2
0
        public async Task <Unit> Handle(SpinStatusChangeCommand request, CancellationToken cancellationToken)
        {
            await _commandRepository.ChangeSpinStatus(request.SpinId, request.SpinStatus);

            return(Unit.Value);
        }