public AccountService(UserManager <AppUser> userManager, IUnitOfWork uow, IJwtService jwtService, IOptions <JwtIssuerOptions> jwtOptions, CASContext context) { _context = context; _uow = uow; _userManager = userManager; _jwtService = jwtService; _jwtOptions = jwtOptions.Value; ThrowIfInvalidOptions(_jwtOptions); }
public UnitOfWork(CASContext context) { _context = context; }
public RepositoryBase(CASContext context) { this._context = context; _dbSet = _context.Set <TEntity>(); }