private static PlayerResponseHitGameViewItem GetPlayerHitGameViewItem(Player player) { var playerHitGameViewItem = new PlayerResponseHitGameViewItem { Id = player.Id, Name = player.Name }; return(playerHitGameViewItem); }
private static IEnumerable <PlayerResponseHitGameViewItem> GetPlayerHitGameViewItems(IEnumerable <Player> bots) { var playerHitGameViewItems = new List <PlayerResponseHitGameViewItem>(); foreach (var bot in bots) { var playerHitGameViewItem = new PlayerResponseHitGameViewItem { Id = bot.Id, Name = bot.Name }; playerHitGameViewItems.Add(playerHitGameViewItem); } return(playerHitGameViewItems); }