Exemplo n.º 1
0
 public static PublicPlayerViewModel ToPublicPlayerViewModel(this PlayerImmutable player, ScoreRepository scoreRepository)
 {
     return(new PublicPlayerViewModel {
         PlayerId = player.PlayerId.Id,
         PlayerName = player.Name,
         Score = scoreRepository.GetScore(player.PlayerId)
     });
 }