public async Task <bool> AddPlayer(FullPlayerDTO player) { var players = await _playersRepository.GetPlayersAsync(); if (players.Any(x => x.Name == player.Name && x.Nick == player.Nick)) { return(false); } else { await _playersRepository.Create(new Player( Guid.NewGuid(), player.Name, player.Nick, player.City )); return(true); } }