Ejemplo n.º 1
0
 public void CalculateTotalValuesOfInventory()
 {
     if (InventoryItems.Any())
     {
         TotalCostValue   = InventoryItems.Sum(x => x.CostPrice);
         TotalRetailValue = InventoryItems.Sum(x => x.RetailPrice);
     }
     TotalCostValue   = 0;
     TotalRetailValue = 0;
 }