@page "/Printers" @inject NavigationManager navigationManager @inject HttpClient httpClient @inject DialogService DialogService @code { List locations = null!; protected override async Task OnParametersSetAsync() { await base.OnParametersSetAsync(); var response = await httpClient.GetAsync(ApiRoutes.Location.List); locations = JsonConvert.DeserializeObject>(await response.Content.ReadAsStringAsync())!; } async Task ShowInlineDialog() { var result = await DialogService.OpenAsync( options: new DialogOptions() { Width = "768"}, title: "Добавление принтера для отслеживания"); } }