public UsersController()
        {
            var kernel = new StandardKernel(new RepositoryModule());

            _usersRepository = kernel.Get <IUserIdentityRepository <ApplicationUser> >();
            _rolesRepository = kernel.Get <IRoleIdentityRepository <IdentityRole> >();
        }
Ejemplo n.º 2
0
 public IRoleIdentityRepository RoleIdentityRepository()
 {
     if (this._repoRolIdentity == null)
     {
         this._repoRolIdentity = new RoleIdentityRepository(this.configuration, this.roleManager, this.userManager, this._contexto);
     }
     return(this._repoRolIdentity);
 }