Beispiel #1
0
 /// <summary>
 /// A constructor
 /// </summary>
 /// <param name="permissionService">Permission service</param>
 /// <param name="employeePermissionService">Employee permission service</param>
 /// <param name="authHelper">Auth helper</param>
 public PermissionController(
     IPermissionService permissionService,
     IEmployeePermissionService employeePermissionService,
     AuthHelper authHelper)
 {
     this.permissionService         = permissionService;
     this.employeePermissionService = employeePermissionService;
     this.authHelper = authHelper;
 }
Beispiel #2
0
        public AppUserStore(IEmployeeQueryEntry userQueryEntry, IEmployeePermissionShipQueryEntry userPermissionShipQueryEntry, IEmployeePermissionService employeePermissionService, IPasswordHasher <AppUser> passwordHasher)
        {
            if (userQueryEntry == null)
            {
                throw new ArgumentNullException(nameof(userQueryEntry));
            }

            _employeeQueryEntry = userQueryEntry;
            _employeePermissionShipQueryEntry = userPermissionShipQueryEntry;
            _employeePermissionService        = employeePermissionService;
            _passwordHasher = passwordHasher;
        }