示例#1
0
        public IActionResult Index()
        {
            var test = _monitorService.GetAll().ToList();

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

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

            return(NotFound());
        }