public IActionResult Index() { var test = _monitorService.GetAll().ToList(); _logger.LogInformation("Index page says hello"); return(View()); }
public IActionResult GetAll() { var monitors = monitorService.GetAll(); if (monitors != null) { return(Ok(monitors)); } return(NotFound()); }