@page "/Cartridges"
@using CartriX.Shared.Models
@using Newtonsoft.Json
@(data.model.name)
@code {
HttpClient httpClient = new();
List cartridges = null!;
string textlol = null!;
protected override async Task OnParametersSetAsync()
{
var query = await httpClient.GetAsync("http://localhost:5197/api/Cartridge/GetAll");
textlol = await query.Content.ReadAsStringAsync();
cartridges = JsonConvert.DeserializeObject>(await query.Content.ReadAsStringAsync())!;
}
}