using System.Collections.Generic; using System.Linq; using MileageTraker.Web.Attributes; namespace MileageTraker.Web.ViewModels.Vehicle { public class VehicleCostReport { public int FiscalYear { get; set; } public IList CostItems { get; set; } [Currency] public decimal TotalPrice { get { return CostItems.Sum(i => i.TotalPrice); } } } }