Exemple #1
0
        public async Task <IActionResult> Zone(string zone)
        {
            if (String.IsNullOrEmpty(zone))
            {
                return(NotFound());
            }

            var monitorDetails = await _monitorService.GetMonitorDetailByZone(zone);

            var viewModel = new MonitorViewModel
            {
                MonitorDetails = monitorDetails
            };

            return(View(viewModel));
        }