public AuthRepository() { _ctx = new AuthContext(); _userManager = new UserManager <User>(new UserStoreService()) { PasswordHasher = new CustomPasswordHasher() }; _roleManager = new ApplicationRoleManager(new RoleStoreService()); context = new CHMEntities(); }