public ActionResult VisualizarTop100()
        {
            try
            {
                GameOperationServiceClient leader    = new GameOperationServiceClient();
                List <Leaderboard>         lstLeader = leader.ListarLeaderboard().ToList();

                ViewBag.ListLeaderboard = lstLeader;
                ViewBag.InfoServico     = "";

                Response.AddHeader("Refresh", "5");
            }
            catch
            {
                ViewBag.ListLeaderboard = new List <Leaderboard>();
                ViewBag.InfoServico     = "* Serviço temporariamento indisponível";
            }

            return(View());
        }
        public ActionResult AtualizarPontuacao(GameResultDTO result)
        {
            if (!ModelState.IsValid)
            {
                return(View(result));
            }
            else
            {
                try
                {
                    GameOperationServiceClient service = new GameOperationServiceClient();
                    service.InserirResultado(result.playerId, result.gameId, result.win);
                    ViewBag.InfoServico = "";

                    return(Redirect("/"));
                }
                catch
                {
                    ViewBag.InfoServico = "* Serviço temporariamento indisponível";
                }

                return(AtualizarPontuacao());
            }
        }