Ejemplo n.º 1
0
        public async Task <ActionResult> MapHighScores()
        {
            try
            {
                await Tracer.Info("Refreshing highscores of all maps");

                var proxy = new AdministrationServiceClient(AuthenticationHelper.GetSessionId());
                return(this.PartialView("ScoresTable", new ScoresViewModel {
                    ShowDetailColumn = true, Scores = proxy.GetMapHighScores()
                }));
            }
            catch (Exception ex)
            {
                this.HandleException("Error while retrieving the highscores", ex);
            }

            return(new HttpStatusCodeResult(HttpStatusCode.InternalServerError));
        }