public ActionResult <IEnumerable <Component> > Get(string serverId) { //get all service statuses var components = _monitorService.ComponentStatus(serverId); //return result if (components != null) { return(Ok(components)); } else { return(NotFound()); } }