public IActionResult Details(int id) { ScenarioDetailViewModel model = mapper.Map <ScenarioDetailViewModel>(scenarioRepository.FindById(id)); model.Monitors = mapper.MapEnumerable <MonitorListDTO>(scenarioRepository.GetMonitors(id)).ToList(); return(View(model)); }