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}!")); }
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}!")); }