public ActionResult GetQuyu() { var City = UserInfo_CityService.LoadMyCity_Quyu(LoginUser.ID); var Quyu = from a in City select new { id = a.QY_connet, text = a.QY_connet }; return(Json(Quyu, JsonRequestBehavior.AllowGet)); }
public ActionResult Index() { var Items = T_ItemsService.LoadEntities(x => x.DelFlag == null).ToList(); var ItemsCount = Items != null?Items.Distinct(new FastPropertyComparer <T_Items>("Bakstr")).ToList() : null; ViewBag.AllClick = LoginUser.Click; // 获取点击次数 ViewBag.OnClic = UserInfoService.GetMaxClick(LoginUser.ID); ViewBag.City = UserInfo_CityService.LoadMyCity_Quyu(LoginUser.ID); ViewBag.Items = Items; ViewBag.ItemsCount = ItemsCount.Count; ViewBag.LMasterID = LoginUser.MasterID; return(View()); }