public async Task <List <FeatureDto> > ListAllFeaturesInTenantAsync(int tenantId) { var features = await _tenantManager.GetFeatureValuesAsync(tenantId); var featureDtos = new List <FeatureDto>(); foreach (var feature in features) { if (feature.Value != "true") { continue; } Feature entity = _featureManager.Get(feature.Name); featureDtos.Add(new FeatureDto() { Name = entity.Name, DisplayName = _localizationManager.GetString((LocalizableString)entity.DisplayName) }); } return(featureDtos); }