public async Task <IActionResult> Detail([FromRoute] Guid applicationId, [FromRoute] Guid featureToggleId) { ViewData["ApplicationId"] = applicationId; var environments = await environmentService.GetEnvironments(applicationId); var featureToggle = await featureToggleService.GetFeatureToggle(applicationId, featureToggleId); var featureToggleValue = await featureToggleService.GetKeyValues(applicationId, featureToggleId); var model = new FeatureToggleDetailViewModel { Environments = environments.Select(x => new ApplicationEnvironmentModel { Name = x.Name, EnvironmentId = x.Id, ApplicationId = x.ApplicationId }), FeatureToggle = featureToggle, FeatureToggleValues = featureToggleValue }; return(View(model)); }