@page "/PrinterPage/{PrinterId:int}" @inject NavigationManager NavManager @using Newtonsoft.Json;
@* @if (printer is null) *@ { } else { @* @printer.hostname *@ Последнее состояние за 00:00:00, DD.MM.YYYY @* @printer.ipAddress *@ @* @printer. *@ @* @printer.locationName *@ }

Состояние картриджа *CartridgeName*

Обновить информацию Поменять расположение Web страница конфигурации

*таблица с историей замены картриджей на принтере*

@code { HttpClient httpClient = new(); [Parameter] public int PrinterId { get; set; } // private PrinterDto? printer; public int PercentCartirge = 20; protected override async Task OnParametersSetAsync() { var data = await httpClient.GetAsync($"http://localhost:5197/api/Printer/GetById/{PrinterId}"); // printer = JsonConvert.DeserializeObject(await data.Content.ReadAsStringAsync()); } }