public MenuController(IMenusService menusService, IMenuInfoService menuInfoService, GeneralFunctions generalFunctions, IListInfoService listInfoService, IListsService listsService) { _menusService = menusService; _menuInfoService = menuInfoService; _generalFunctions = generalFunctions; _listsService = listsService; _listInfoService = listInfoService; }
public ContentController(IContentsService contentsService, IContentInfoService contentInfoService, IContentClassesService contentClassesService, IContentImagesService contentImagesService, GeneralFunctions generalFunctions, IMenusService menusService, IMenuInfoService menuInfoService) { _contentsService = contentsService; _contentInfoService = contentInfoService; _contentClassesService = contentClassesService; _contentImagesService = contentImagesService; _generalFunctions = generalFunctions; _menusService = menusService; _menuInfoService = menuInfoService; }
//private readonly IUserInfoService userService; public ManagerController( ILogger <ManagerController> logger, IEFCoreService efCoreService, IMenuButtonService menuButtonService, IMenuInfoService menuInfoService, IRoleInfoService roleInfoService, IRoleMenuService roleMenuService, IUserInfoService userInfoService, IUserRoleService userRoleService ) { _logger = logger; _EFCoreService = efCoreService; _menuButtonService = menuButtonService; _menuInfoService = menuInfoService; _roleInfoService = roleInfoService; _roleMenuService = roleMenuService; _userInfoService = userInfoService; _userRoleService = userRoleService; }
public string ListContentsMenu(string resource, IMenusService menusService, IMenuInfoService menuInfoService) { string strHtml = ""; int parentID = 0; var menus = menusService.GetAll(); var menuInfo = menuInfoService.GetAll(); var model = (from m in menus join mI in menuInfo on m.MenuID equals mI.MenuID where m.ParentID == parentID select new MenuListVM { MenuID = m.MenuID, Menu = mI.Menu } ).ToList(); foreach (var item in model) { strHtml += "<li>"; strHtml += string.Format(@"<input id= ""{0}"" type=""checkbox"" />< label for= ""vicepresident""> {1} </label>", item.MenuID, item.Menu); strHtml += "</li>"; } // //<li> // <input id="profil" type="checkbox" /><label for="vicepresident">Profil</label> // <ul> // <li><input id="hakkimizda" type="checkbox" /><label for="manager4">Hakkımızda</label></li> // <li><input id="degerlerimiz" type="checkbox" /><label for="manager5">Değerlerimiz</label></li> // </ul> //</li> return(strHtml); }
public UserMenuRoleService(IRepository <UserMenuRole, DataContext> Repository, IMapper mapper, IMenuInfoService menuInfoService, IUserService userService) : base(Repository, mapper) { _menuInfoService = menuInfoService; _userService = userService; }
public MenuInfoController(IMenuInfoService _service) { service = _service; }
public CommonMethodsController(IUserService userService, IMenuInfoService menuInfoService) { _userService = userService; _menuInfoService = menuInfoService; }
public MenuRecursion(IMenusService menusService, IMenuInfoService menuInfoService) { _menusService = menusService; _menuInfoService = menuInfoService; allMenuItems = GetMenuItems(); }
/// <summary> /// 菜单信息 /// </summary> /// <param name="service">IMenuInfoService</param> public MenuInfoController(IMenuInfoService service) { _service = service; }