public RoundService(ApplicationDbContext dbContext, IConfiguration configuration, IJackpotService jackpotService) { _dbContext = dbContext; _configuration = configuration; _jackpotService = jackpotService; jackPercFromBet = _configuration.GetValue <int>("Jackpot:PercFromBet"); }
public UserService( IConfiguration configuration, TokenHelper tokenHelper, SignInManager <User> signinManager, UserManager <User> userManager, IUserRepository userRepository, IJackpotService jackpotService ) { _configuration = configuration; _tokenHelper = tokenHelper; _userManager = userManager; _signInManager = signinManager; _userRepository = userRepository; _jackpotService = jackpotService; _JwtKey = _configuration["Jwt:key"]; _tokenExpiresAfterInMinutes = int.Parse(_configuration["Jwt:ExpiresAfterInMinutes"]); _amountPercentgeToPutInJackpot = int.Parse(_configuration["Jackpot:AmountPercentgeToPutInJackpot"]); }
public JackpotController(IJackpotService jackpotService) { _jackpotService = jackpotService; }