public DefaultAccountPermissionResolver(ICacheHandler cache, IRolePermissionRepository rolePermissionRepository, IRoleButtonRepository roleButtonRepository, IRolePageRepository rolePageRepository, IMenuRepository menuRepository) { _cache = cache; _rolePermissionRepository = rolePermissionRepository; _roleButtonRepository = roleButtonRepository; _rolePageRepository = rolePageRepository; _menuRepository = menuRepository; }
public RoleService(IMapper mapper, IRoleRepository repository, IRoleMenuRepository roleMenuRepository, IAccountRoleRepository accountRoleRepository, IAccountService accountService, IMenuRepository menuRepository, AdminDbContext dbContext, ICacheHandler cacheHandler, IRolePageRepository pageRepository, IRoleButtonRepository buttonRepository1, IRolePermissionRepository permissionRepository) { _mapper = mapper; _repository = repository; _roleMenuRepository = roleMenuRepository; _accountRoleRepository = accountRoleRepository; _accountService = accountService; _menuRepository = menuRepository; _dbContext = dbContext; _cacheHandler = cacheHandler; _pageRepository = pageRepository; _buttonRepository = buttonRepository1; _permissionRepository = permissionRepository; }