public AuthRepository() { context = new HoYaContext(); userStore = new UserStore <IdentityUser>(context); userManager = new UserManager <IdentityUser>(userStore); roleManager = new RoleManager <IdentityRole>(new RoleStore <IdentityRole>(context)); }
public WorkFlowsRepository(HoYaContext db) { this.db = db; }