public async Task <string> GetPlayers(string gameName) { GameService service = new GameServiceImpl(); var result = await service.GetPlayersByGame(gameName); return(JsonConvert.SerializeObject(result)); }
public async Task <ActionResult> Bank(string gameName) { GameService service = new GameServiceImpl(); return(View(await service.GetPlayersByGame(gameName))); }