public AccountController(D2Context d2Context, UserManager <User> manager, RoleManager <IdentityRole> role, SignInManager <User> signIn) { signInManager = signIn; roleManager = role; userManager = manager; this.d2Context = d2Context; }
public HomeController(D2Context d2Context, RoleManager <IdentityRole> role) { this.d2Context = d2Context; news = d2Context.News.ToList(); teams = d2Context.Teams.ToList(); players = d2Context.Players.ToList(); countries = d2Context.Countries.ToList(); roleManager = role; }