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