corrections

master
Mathilde JEAN 2 years ago
parent 6c8166cf3c
commit 5da6aeecdd

@ -24,8 +24,6 @@ namespace BlazorApp.Components
public List<Item> InventoryItems { get; set; }
public List<InventoryItem> InvItems { get; set; }
private int totalItem;
public InventoryComp()
@ -37,7 +35,7 @@ namespace BlazorApp.Components
}
}
private async Task OnReadData(DataGridReadDataEventArgs<InventoryItem> e)
private async Task OnReadData(DataGridReadDataEventArgs<Item> e)
{
if (e.CancellationToken.IsCancellationRequested)
{
@ -48,11 +46,6 @@ namespace BlazorApp.Components
{
Items = await DataService.List(e.Page, e.PageSize);
totalItem = await DataService.Count();
foreach (Item i in Items){
InventoryItem newI = new InventoryItem();
newI.Item = i;
InvItems.Append(newI);
}
}
}

Loading…
Cancel
Save