public PlayerService(IRepository <Player> repository, IUnitOfWork unitOfWork) : base(repository) { this._repository = repository; this._unitOfWork = unitOfWork; _ictx = new GiffyIdentityContext(); _userManager = new GiffyUserManager(new UserStore <User>(_ictx)); }
public AuthRepository() { _ctx = new GiffyIdentityContext(); _userManager = new GiffyUserManager(new UserStore <User>(_ctx)); _roleManager = new GiffyRoleManager(new RoleStore <IdentityRole>(_ctx)); }