public RoleRepository(ProcessingClaimDbContext dbContext = null) { _roleManager = new RoleManager <IdentityRole, string>( new RoleStore <IdentityRole>(dbContext ?? new ProcessingClaimDbContext())); }
public UserRepository(ProcessingClaimDbContext dbContext = null) { _roleRepository = new RoleRepository(dbContext); _userStore = new UserManager( new UserStore <ApplicationUser>(dbContext ?? new ProcessingClaimDbContext())); }