Esempio n. 1
0
        public async Task <ActionResult> MapScores(long id)
        {
            try
            {
                await Tracer.Info(string.Format("Refreshing scores of map with id '{0}'", id));

                var proxy = new AdministrationServiceClient(AuthenticationHelper.GetSessionId());
                return(this.PartialView("ScoresTable", new ScoresViewModel {
                    Scores = proxy.GetMapScores(id)
                }));
            }
            catch (Exception ex)
            {
                this.HandleException(string.Format("Error while retrieving the scores for map '{0}'", id), ex);
            }

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