public SiwesAdminRepository(UserManager <User> userManager, IGlobalRepository globalRepository,
                             IAuthenticationRepo authenticationRepository, RoleManager <Role> roleManager, IRoleRepository roleRepository)
 {
     _userManager              = userManager;
     _globalRepository         = globalRepository;
     _authenticationRepository = authenticationRepository;
     _roleManager              = roleManager;
     _roleRepository           = roleRepository;
 }
Example #2
0
 public IndustrialSupervisorRepo(ApplicationDataContext dataContext, UserManager <User> userManager,
                                 IGlobalRepository globalRepository, IAuthenticationRepo authenticationRepository,
                                 IMapper mapper, ICloudinaryRepository cloudinaryRepository)
 {
     _dataContext              = dataContext;
     _userManager              = userManager;
     _globalRepository         = globalRepository;
     _mapper                   = mapper;
     _authenticationRepository = authenticationRepository;
     _cloudinaryRepository     = cloudinaryRepository;
 }
Example #3
0
 public StudentRepository(ApplicationDataContext dataContext, UserManager <User> userManager, IHttpContextAccessor httpContextAccessor,
                          IGlobalRepository globalRepository, IAuthenticationRepo authenticationRepository,
                          IMapper mapper, ICloudinaryRepository cloudinaryRepository)
 {
     _dataContext         = dataContext;
     _userManager         = userManager;
     _httpContextAccessor = httpContextAccessor;
     _globalRepository    = globalRepository;
     _mapper = mapper;
     _authenticationRepository = authenticationRepository;
     _cloudinaryRepository     = cloudinaryRepository;
 }
Example #4
0
 public AuthenticationController(IMapper mapper, IConfiguration configuration, IAuthenticationRepo authenticationRepo)
 {
     _mapper             = mapper;
     _configuration      = configuration;
     _authenticationRepo = authenticationRepo;
 }
Example #5
0
 internal AuthencationBusiness()
 {
     _authRepo = RepoFactory.GetAuthenticationRepo();
 }
Example #6
0
 public AuthenticationService(IAuthenticationRepo authRepo, JwtSettings jwtSettings)
 {
     _authRepo    = authRepo;
     _jwtSettings = jwtSettings;
 }