Exemplo n.º 1
0
        // 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();
        }
Exemplo n.º 2
0
 protected override IQueryable<CultureDefinition> GetBaseQuery()
 {
     var repo = new CulturesRepository();
     return repo.GetAllCultures().AsQueryable();
 }