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