public UsersController() { var kernel = new StandardKernel(new RepositoryModule()); _usersRepository = kernel.Get <IUserIdentityRepository <ApplicationUser> >(); _rolesRepository = kernel.Get <IRoleIdentityRepository <IdentityRole> >(); }
public IRoleIdentityRepository RoleIdentityRepository() { if (this._repoRolIdentity == null) { this._repoRolIdentity = new RoleIdentityRepository(this.configuration, this.roleManager, this.userManager, this._contexto); } return(this._repoRolIdentity); }