public ActionResult WXGroupMessage() { var pageModel = _iMemberLabelService.GetMemberLabelList(new LabelQuery() { }); ViewBag.LabelInfos = pageModel.Models.ToList(); //var topregion = _iMemberService.GetAllTopRegion().Select(e => new SelectListItem //{ // Text = _iRegionService.GetRegion(e).Name, // Value = e.ToString() //}).Where(e => !string.IsNullOrWhiteSpace(e.Text)).ToList(); //topregion.Insert(0, new SelectListItem { Value = "-1", Text = "全部" }); var topregion = MemberApplication.GetAllTopRegion().Select(e => { var region = RegionApplication.GetRegion(e); string shortName = ""; if (region != null && region.Level == Region.RegionLevel.Province) { shortName = region.ShortName; } return(new SelectListItem { Text = shortName, Value = e.ToString() }); }).Where(e => !string.IsNullOrWhiteSpace(e.Text)).ToList(); topregion.Insert(0, new SelectListItem { Value = "-1", Text = "全部" }); ViewBag.Regions = topregion; return(View()); }