private Player HandleNewPlayer(Message message) { var p = new Player(message.From.Id); _gameRepository.AddPlayer(p); return(p); }
public async Task <int> AddPlayer([FromBody] Player player) { return(await _gameRepository.AddPlayer(player)); }
public Player AddPlayer() { return(gameRepository.AddPlayer()); }