Example #1
0
 public RoleRepositoryImpl()
 {
     context     = new IUERM_RSchedEntities();
     roleManager = new RoleManager <IdentityRole>(new RoleStore <IdentityRole>(new ApplicationDbContext()));
     userManager = new UserManager <ApplicationUser>(new UserStore <ApplicationUser>(new ApplicationDbContext()));
 }
Example #2
0
 public UserRepositoryImpl(IRoleRepository roleRepository)
 {
     this.roleRepository = roleRepository;
     context             = new IUERM_RSchedEntities();
     userManager         = new UserManager <ApplicationUser>(new UserStore <ApplicationUser>(new ApplicationDbContext()));
 }