public IActionResult GetById(string id) { if (id.Equals(null)) { return(BadRequest()); } var monitor = monitorService.Get(id); if (monitor.Equals(null)) { return(NotFound()); } return(Ok(monitor)); }