public UserManagerBso(ApplicationUserManager userManager) { var roleManagerDbContext = RoleManagerDbContext.Create(); this.UserManager = userManager; this.RoleManager = new RoleManager <ApplicationRole>(new RoleStore <ApplicationRole>(roleManagerDbContext)); this.UnitOfWork = new UnitOfWork(roleManagerDbContext); }
public RoleManagerBso() { this.UnitOfWork = new UnitOfWork(RoleManagerDbContext.Create()); }