public ActionResult Index(string type) { if (type == null || !RankTypes.ContainsKey(type)) { return(RedirectToAction("Index", new { type = "all" })); } else { return(View(GameCache.GetRankChar(RankTypes[type]))); } }