// private readonly CONTOSOContext _dbContext; public UserService(IOptions <AppSettings> appSettings, JwtTestDBContext dbContext, IHttpContextAccessor accessor) // public UserService(IOptions<AppSettings> appSettings, CONTOSOContext dbContext) { _dbContext = dbContext; _appSettings = appSettings.Value; _httpContextAccessor = accessor; }
// private readonly CONTOSOContext _dbContext; public UserService(IOptions <AppSettings> appSettings, JwtTestDBContext dbContext) // public UserService(IOptions<AppSettings> appSettings, CONTOSOContext dbContext) { _dbContext = dbContext; _appSettings = appSettings.Value; }