public ActionResult _ListPointItems(string spaceKey) { PointSettings pointSettings = pointSettingsManger.Get(); IEnumerable <PointItem> pointItems = pointService.GetPointItemsOfIncome(); IEnumerable <PointCategory> pointCategories = pointService.GetPointCategories(); ViewData["traPoint"] = pointCategories.FirstOrDefault(n => n.CategoryKey.Equals("TradePoints")).CategoryName; ViewData["expPoint"] = pointCategories.FirstOrDefault(n => n.CategoryKey.Equals("ExperiencePoints")).CategoryName; ViewData["prePoint"] = pointCategories.FirstOrDefault(n => n.CategoryKey.Equals("ReputationPoints")).CategoryName; ViewData["pointCategories"] = pointCategories; ViewData["pointRule"] = pointSettings.UserIntegratedPointRuleText; return(View("_ListPointItems", pointItems)); }