public async Task <ActionResult> DeleteSpeaker(int id) { var command = new DeleteSpeakerCommand { Id = id }; return(Ok(await Mediator.Send(command))); }
public async void Delete(Guid id) { var command = new DeleteSpeakerCommand(id); await _commandDispatcher.DispatchCommandAsync(command); }