public async void Put(Guid id, [FromBody] Speaker value) { var command = new UpdateSpeakerCommand(id, value); await _commandDispatcher.DispatchCommandAsync(command); }
public async Task <ActionResult> UpdateSpeaker(UpdateSpeakerCommand command) { return(Ok(await Mediator.Send(command))); }