public GameResultDto GetGameResult(int id) { var gameResult = _gameResultRepository.Get(id); var gameResultDto = Mapper.Map <GameResultDto>(gameResult); gameResultDto.CreatedGamerNickname = _gamerRepository.Get(Guid.Parse(gameResultDto.CreatedGamerId))?.Nickname; if (gameResultDto.GameTableId.HasValue) { gameResultDto.GameTableName = _gameTableRepository.Get(gameResultDto.GameTableId.Value)?.Name; } return(gameResultDto); }
public Gamer GetGamer(Guid id) { return(_gamerRepository.Get(id)); }