@using Biskilog_Accounting.Shared.CustomModels; @using Biskilog_Accounting.Shared.Interfaces; @inject ICalculator m_calculator @if (!IsLoading) { @if (MostPurchasedItems.Count() > 5) {
Top 50 most purchased items
@foreach (MostPurchasedItem purchasedItem in m_items.Take(5)) { @($"{purchasedItem.ProductName} x{purchasedItem.NbrTimesSold}")
}
} } else {
}