Exemplo n.º 1
0
 public UserService(UserManager <SyllabusManagerUser> userManager, RoleManager <IdentityRole> roleManager, SyllabusManagerDbContext dbContext)
 {
     _userManager = userManager;
     _roleManager = roleManager;
     _dbContext   = dbContext ?? throw new ArgumentNullException(nameof(dbContext));
     _dbSet       = _dbContext.Set <SyllabusManagerUser>();
 }
Exemplo n.º 2
0
 public NonVersionedService(SyllabusManagerDbContext dbContext)
 {
     _dbContext = dbContext ?? throw new ArgumentNullException(nameof(dbContext));
     _dbSet     = _dbContext.Set <T>();
 }
Exemplo n.º 3
0
 public ModelBaseService(SyllabusManagerDbContext dbContext)
 {
     _dbContext = dbContext;
     _dbSet     = _dbContext?.Set <T>();
 }