@page "/" @page "/Dashboard" @using CartriX.Shared.DTOs.Report @inject HttpClient httpClient @code { List? dataPerPrinteds; protected override async Task OnInitializedAsync() { var response = await httpClient.GetAsync("http://localhost:5197/api/Report/GetReportToDatePerCountPrinted"); dataPerPrinteds = JsonConvert.DeserializeObject>(await response.Content.ReadAsStringAsync()); dataPerPrinteds = dataPerPrinteds?.OrderBy(x => x.date).ToList(); } }