Beispiel #1
0
 public AdminService(IUserRepo userRepo, IMapper mapper, IEncrypter encrypter, IRoleRepo roleRepo, IUserInRoleRepo userInRole)
 {
     _userRepo       = userRepo;
     _mapper         = mapper;
     _encrypter      = encrypter;
     _roleRepo       = roleRepo;
     _userInRoleRepo = userInRole;
 }
 public AccountService(IUserRepo userRepo, IMapper mapper, IEncrypter encrypter, IJwtHandler jwtHandler, IRoleRepo roleRepo, IUserInRoleRepo userInRole, IMemoryCache cache)
 {
     _userRepo       = userRepo;
     _mapper         = mapper;
     _encrypter      = encrypter;
     _jwtHandler     = jwtHandler;
     _roleRepo       = roleRepo;
     _userInRoleRepo = userInRole;
     _cache          = cache;
 }