Более менее сделал страничку с принтером

This commit is contained in:
HK committed 2026-06-10 13:59:28 +09:00
1 parent 286beabf89
commit 9a486a57b4
9 files changed
+103 -32

No files matched your search

@@ -36,9 +36,8 @@ namespace CartriX.Api.Controllers.Network
/// Сделать ПИНГ к указанному хосту или IP Адресу
/// </summary>
[ProducesResponseType(typeof(bool), StatusCodes.Status200OK)]
[ProducesResponseType(typeof(bool), StatusCodes.Status404NotFound)]
[HttpGet(nameof(Ping))]
public async Task<ActionResult> Ping([FromQuery] string IpAddressOrHostname) => (await NetworkHelper.PingHostAsync(IpAddressOrHostname)) ? StatusCode(200, true) : StatusCode(404, false);
public async Task<ActionResult> Ping([FromQuery] string IpAddressOrHostname) => StatusCode(200, await NetworkHelper.PingHostAsync(IpAddressOrHostname));
/// <summary>