public UserService(LGITContext context, IOptions <AppSettings> appSettings) { _context = context; // configure jwt authentication var _appSettings = appSettings.Value; }
public AccountsController( UserManager <IdentityUser> userManager, SignInManager <IdentityUser> signInManager, //IMapper mapper, //ApplicationDbUserContext appDbContext, IOptions <AppSettings> appSettings ) { this.signInManager = signInManager; _LGITDbContext = new LGITContext(); _appSettings = appSettings.Value; this.userManager = userManager; _emailService = new EmailService(_LGITDbContext, appSettings); _userService = new UserService(_LGITDbContext, appSettings); }