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>(); }
public NonVersionedService(SyllabusManagerDbContext dbContext) { _dbContext = dbContext ?? throw new ArgumentNullException(nameof(dbContext)); _dbSet = _dbContext.Set <T>(); }
public ModelBaseService(SyllabusManagerDbContext dbContext) { _dbContext = dbContext; _dbSet = _dbContext?.Set <T>(); }