@page "/Printers"
@using CartriX.Shared.DTOs.Location
@using CartriX.Shared.DTOs.Printer
@code {
List locations = null!;
protected override async Task OnParametersSetAsync()
{
await base.OnParametersSetAsync();
HttpClient client = new();
var response = await client.GetAsync("http://localhost:5197/api/Location/GetAll");
locations = JsonConvert.DeserializeObject>(await response.Content.ReadAsStringAsync())!;
}
}