예제 #1
0
 public GamesController(LudothequeAccountContext context, UserManager <LudothequeUser> userManager)
 {
     this.userManager    = userManager;
     _context            = context;
     _gameService        = new GamesService(context);
     _gameAllDataService = new GameAllDataService(context);
 }
예제 #2
0
 public AdminController(LudothequeAccountContext context, RoleManager <IdentityRole> roleManager, UserManager <LudothequeUser> userManager)
 {
     this.roleManager    = roleManager;
     this.userManager    = userManager;
     _context            = context;
     _gameService        = new GamesService(context);
     _gameAllDataService = new GameAllDataService(context);
 }