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); }