Exemplo n.º 1
0
 public UserController(
     IMapper mapper,
     IUserRepository userRepository,
     IUnitOfWork unitOfWork,
     IModuleRightsRepository moduleRightsRepository,
     IUserModuleRightsRepository userModuleRightsRepository
     )
 {
     this.mapper                     = mapper;
     this.userRepository             = userRepository;
     this.moduleRightsRepository     = moduleRightsRepository;
     this.userModuleRightsRepository = userModuleRightsRepository;
     this.unitOfWork                 = unitOfWork;
 }
Exemplo n.º 2
0
 public AuthController(
     IUserRepository userRepository,
     IUnitOfWork unitOfWork,
     IMapper mapper,
     IUserModuleRightsRepository userModuleRepository,
     IModuleRightsRepository moduleRightsRepository,
     IConfiguration config,
     IUserModuleRightsRepository userModuleRightsRepository)
 {
     this.userRepository             = userRepository;
     this.unitOfWork                 = unitOfWork;
     this.mapper                     = mapper;
     this.userModuleRepository       = userModuleRepository;
     this.moduleRightsRepository     = moduleRightsRepository;
     this.userModuleRightsRepository = userModuleRightsRepository;
     this.config                     = config;
     this.shouldLoginAD              = config.GetValue <bool>("LoginAD");
     this.domainName                 = config.GetSection("Domain").Value;
     this.licensekey                 = config.GetSection("LicenseKey").Value;
 }