public async Task <IActionResult> UpdateCharacterName([FromBody] UpdateCharacterNameCommand command) { await _messageSession.Send(command).ConfigureAwait(false); return(Accepted()); }
public Task UpdateCharacterName(UpdateCharacterNameCommand command) => _characterRepository.UpdateCharacterName(command.Id, command.Name);