Example #1
0
 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));
 }
Example #2
0
 public AuthRepository()
 {
     _ctx         = new GiffyIdentityContext();
     _userManager = new GiffyUserManager(new UserStore <User>(_ctx));
     _roleManager = new GiffyRoleManager(new RoleStore <IdentityRole>(_ctx));
 }