Exemplo n.º 1
0
        public ActionResult Index(string host)
        {
            bool   result  = NetworkUtility.CanPing(host, 10000);
            string message = result == true? "up and runing": "not reachable";

            return(new OkObjectResult($"Host {host} is {message}!"));
        }