Esempio n. 1
0
        public IActionResult Index()
        {
            var test = _monitorService.GetAll().ToList();

            _logger.LogInformation("Index page says hello");
            return(View());
        }
Esempio n. 2
0
        public IActionResult GetAll()
        {
            var monitors = monitorService.GetAll();

            if (monitors != null)
            {
                return(Ok(monitors));
            }

            return(NotFound());
        }