public GlobalFilterService(IInformationService infoService, WorkFlowPostgreSqlContext dbcontext, IConfiguration configuration) { _infoService = infoService; _dbcontext = dbcontext; _configuration = configuration; var val = _infoService.GetConfiguration("defaultdaterange", "dashboard"); if (val != null) { defaultDateRange = val.Value; } }