// Constructor public SettingsController(ApplicationContext db, ILogger <SettingsController> logger, IStringLocalizer <SettingsController> localizer, IMapper mapper, ITenantUserInfoAccessor tenantInfo) { _db = db; _logger = logger; _localizer = localizer; _mapper = mapper; _tenantInfo = tenantInfo; _culturesRepo = new CulturesRepository(); }
protected override IQueryable<CultureDefinition> GetBaseQuery() { var repo = new CulturesRepository(); return repo.GetAllCultures().AsQueryable(); }