Exemplo n.º 1
0
        public async Task <IActionResult> ClearPlayerScores()
        {
            var userId = accountService.GetUserId();
            await service.ClearPlayerScores(userId);

            IndexVM viewModel = await service.GetIndexVMAsync(accountService.GetUserId());

            var players = viewModel.Leaderboard;

            return(Json(players));
        }