public ActionResult List() { ContestEntity contest = ViewData["Contest"] as ContestEntity; List <RankItem> ranklist = ContestManager.GetContestRanklist(contest); List <ContestProblemEntity> problems = ContestProblemManager.GetContestProblemList(contest.ContestID); ViewBag.Problems = problems; return(View(ranklist)); }
public ActionResult Statistics() { ContestEntity contest = ViewData["Contest"] as ContestEntity; IDictionary <Int32, ContestProblemStatistic> statistics = SolutionManager.GetContestStatistic(contest.ContestID); List <ContestProblemEntity> problems = ContestProblemManager.GetContestProblemList(contest.ContestID); Dictionary <String, Byte> langs = LanguageManager.GetSupportLanguages(contest.SupportLanguage); ViewBag.Problems = problems; ViewBag.Languages = langs; return(View(statistics)); }