コード例 #1
0
        public async Task <IActionResult> UpdateCharacterName([FromBody] UpdateCharacterNameCommand command)
        {
            await _messageSession.Send(command).ConfigureAwait(false);

            return(Accepted());
        }
コード例 #2
0
 public Task UpdateCharacterName(UpdateCharacterNameCommand command)
 => _characterRepository.UpdateCharacterName(command.Id, command.Name);