Example #1
0
 public GamblerController(ProBetContext context, UserManager <AppUser> userMgr, IWebHostEnvironment hostEnvironment)
 {
     _context           = context;
     dbContext          = context;
     webHostEnvironment = hostEnvironment;
     userManager        = userMgr;
 }
Example #2
0
 public AdminController(UserManager <AppUser> usrMgr, IPasswordHasher <AppUser> passwordHash, IPasswordValidator <AppUser> passwordVal, IUserValidator <AppUser>
                        userValid, ProBetContext context)
 {
     userManager       = usrMgr;
     passwordHasher    = passwordHash;
     passwordValidator = passwordVal;
     userValidator     = userValid;
     _context          = context;
 }
Example #3
0
 public AccountController(UserManager <AppUser> userMgr, SignInManager <AppUser> signinMgr, IPasswordHasher <AppUser> passwordHash, IPasswordValidator <AppUser> passwordVal, IUserValidator <AppUser>
                          userValid, ProBetContext context)
 {
     userManager       = userMgr;
     signInManager     = signinMgr;
     passwordHasher    = passwordHash;
     passwordValidator = passwordVal;
     userValidator     = userValid;
     _context          = context;
 }
Example #4
0
 public MatchesController(ProBetContext context)
 {
     _context = context;
 }
Example #5
0
 public TicketsController(ProBetContext context)
 {
     _context = context;
 }
Example #6
0
 public GamblersController(ProBetContext context, IWebHostEnvironment hostEnvironment)
 {
     _context           = context;
     dbContext          = context;
     webHostEnvironment = hostEnvironment;
 }