public void Initialize() { _context = GreenspotIdentityDbContext.Create(); _userManager = new GreenspotUserManager(new MySqlUserStore <GreenspotUser>(_context)); _roleManager = new RoleManager <IdentityRole>(new MySqlRoleStore <IdentityRole>(_context)); }
public AccountController(GreenspotUserManager userManager, GreenspotSignInManager signInManager) { _userManager = userManager; _signInManager = signInManager; }