コード例 #1
0
        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());
            }
        }