Exemplo n.º 1
0
        public async Task <AuthorizePlayerViewModel> AuthorizePlayer(string name)
        {
            Player human = await _playerRepository.SelectByName(name, (int)PlayerType.Human);

            Game game = await _gameRepository.GetByPlayerId(human.Id);

            AuthorizePlayerViewModel authorizePlayerViewModel = CustomMapper.GetAuthorizePlayerViewModel(human, game);

            return(authorizePlayerViewModel);
        }