public ActionResult StorePermissionMenu() { IStoresService storesService = ServiceFactory.Create <IStoresService>(); var store = storesService.GetFirstOrDefault(t => t.ID == CurrentInfo.CurrentStore.ID); if (store != null) { IRelationStoresModuleService relationStoresModuleService = ServiceFactory.Create <IRelationStoresModuleService>(); //获取门店拥有的所有菜单 var munes = relationStoresModuleService.GetEntities(t => t.StoresID == store.ID).Select(t => t.Module); return(View(munes)); } else { return(RedirectToAction("Error403", "Home", new { area = "Admin" })); } }