コード例 #1
0
        private Player HandleNewPlayer(Message message)
        {
            var p = new Player(message.From.Id);

            _gameRepository.AddPlayer(p);
            return(p);
        }
コード例 #2
0
 public async Task <int> AddPlayer([FromBody] Player player)
 {
     return(await _gameRepository.AddPlayer(player));
 }
コード例 #3
0
 public Player AddPlayer()
 {
     return(gameRepository.AddPlayer());
 }