@page "/"
@page "/Dashboard"
@using Microsoft.AspNetCore.Authorization
@attribute [Authorize(Roles = "Administrator")]
@inject HttpClient httpClient
@code {
List? dataPerPrinteds;
protected override async Task OnInitializedAsync()
{
var response = await httpClient.GetAsync(ApiRoutes.Report.GetReportToDatePerCountPrinted);
dataPerPrinteds = JsonConvert.DeserializeObject>(await response.Content.ReadAsStringAsync());
dataPerPrinteds = dataPerPrinteds?.OrderBy(x => x.date).ToList();
}
}