public ActionResult ChangeUserEmploy() { UserEmployListEntity entity = new UserEmployListEntity(); entity.AreaList = _areaService.List(); if (entity.AreaList != null && entity.AreaList.Count > 0) { entity.ShopList = _bgShopService.List(entity.AreaList[0].ID); } return(View(entity)); }
/// <summary> /// ForMainPage 的 /// </summary> /// <returns></returns> public ActionResult EmployListForMainPage() { UserEmployListEntity entity = new UserEmployListEntity(); entity.AreaList = _areaService.List(); long areaId = LoginHelper.AreaId; long shopID = LoginHelper.ShopID; if (entity.AreaList != null && entity.AreaList.Count > 0) { entity.ShopList = _bgShopService.List(areaId); } ViewBag.areaId = areaId; ViewBag.shopID = shopID; return(View(entity)); }