예제 #1
0
 private async Task <Player> GetPlayer(Guid id) => await _playerRepo.GetPlayerAsync(id);
예제 #2
0
        public async Task <FullPlayerDTO> GetPlayerById(Guid id)
        {
            var entity = await _playersRepository.GetPlayerAsync(id);

            return(new FullPlayerDTO(entity.Id, entity.Name, entity.Nick, entity.City));
        }