/////Methods for User Account///// public UserAccountsController(KazidocsContext kazidocsContext, UserManager <IdentityUser> userManager, SignInManager <IdentityUser> signInManager, IConfiguration configuration, RoleManager <IdentityRole> _roleManager) { _context = kazidocsContext; if (_context.UserAccounts.Count() == 0) { _context.UserAccounts.Add(new UserAccounts { Name = "Item1" }); _context.SaveChanges(); } _userManager = userManager; _signInManager = signInManager; _configuration = configuration; _context = kazidocsContext; roleManager = _roleManager; }
public UserTokensController(KazidocsContext context) { _context = context; }