public MenuRoleViewModel(IMenuRoleService CurrentService, BackendDBContext context, IMapper Mapper, TranscationResultHelper transcationResultHelper) { this.CurrentService = CurrentService; this.context = context; mapper = Mapper; TranscationResultHelper = transcationResultHelper; MenuRoleSort.Initialization(SortConditions); #region 工具列按鈕初始化 Toolbaritems.Add(new ItemModel() { Id = ButtonIdHelper.ButtonIdAdd, Text = "新增", TooltipText = "新增", Type = ItemType.Button, PrefixIcon = "mdi mdi-plus-thick", Align = ItemAlign.Left, }); Toolbaritems.Add(new ItemModel() { Id = ButtonIdHelper.ButtonIdRefresh, Text = "重新整理", TooltipText = "重新整理", PrefixIcon = "mdi mdi-refresh", Align = ItemAlign.Left, }); Toolbaritems.Add("Search"); #endregion }
public MenuController(IMenuRoleService menuRoleService, IUserRoleService userRoleService ) { _menuRoleService = menuRoleService; _userRoleService = userRoleService; }
public MenuRoleController(IMenuRoleService menuroleService, IMenuRole menurole, IMenuServices menuservice) { _IMenuRoleService = menuroleService; _IMenuServices = menuservice; _IMenuRole = menurole; _menuRole = new MenuRole(); }
public MenuRoleController(ILoggingRepository loggingRepository, IApplicationRoleService appRoleService, RoleManager <IdentityRole> roleManager, UserManager <ApplicationUser> userManager, IMenuRoleService menuRoleService) { _appRoleService = appRoleService; _roleManager = roleManager; _userManager = userManager; _menuRoleService = menuRoleService; _loggingRepository = loggingRepository; }
public MenuRoleController(IMenuRoleService menuRoleService, IMenuService menuService, IRoleService roleService) { _menuRoleService = menuRoleService; _menuService = menuService; _roleService = roleService; }
public UseInfoController(IUserInfoService iUserInfoService, IUserRoleService IUserRoleService, IMenuRoleService IMenuRoleService, IMenuService IMenuService) { _IUserInfoService = iUserInfoService; _UserRoleService = IUserRoleService; _IMenuRoleService = IMenuRoleService; _IMenuService = IMenuService; }
protected override void Dispose(bool isDisposing) { if (isDisposing) { _IMenuRoleService = null; _IMenuRole = null; _menuRole = null; } }
public ValuesController(IUserInfoService IUserInfoService, IMenuService IMenuService, IRoleService IRoleService, IUserRoleService IUserRoleService, IMenuRoleService IMenuRoleService) { _IUserInfoService = IUserInfoService; _IMenuService = IMenuService; _IRoleService = IRoleService; _IUserRoleService = IUserRoleService; _IMenuRoleService = IMenuRoleService; }
public AccountController() { _IMenuRoleService = new MenuRoleServices(); }