public PermissionService(IFunctionInRoleRepository functionInRoleRepository, IUserInRoleRepository userInRoleRepository, ISecurityDomainService securityDomainService)
 {
     this.functionInRoleRepository = functionInRoleRepository;
     this.userInRoleRepository = userInRoleRepository;
     this.SecurityDomainService = securityDomainService;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="PermissionService"/> class.
 /// </summary>
 /// <param name="functionRepository">
 /// The function repository.
 /// </param>
 /// <param name="securityDomainService">
 /// The security domain service.
 /// </param>
 /// <param name="functionInRoleRepository">
 /// The function in role repository.
 /// </param>
 public PermissionService(IFunctionRepository functionRepository, ISecurityDomainService securityDomainService, IFunctionInRoleRepository functionInRoleRepository)
 {
     this.functionRepository = functionRepository;
     this.securityDomainService = securityDomainService;
     this.functionInRoleRepository = functionInRoleRepository;
 }