Files
MileageTraker/Web/ViewModels/Vehicle/VehicleCostReport.cs
T
2015-10-24 14:28:13 -04:00

16 lines
371 B
C#

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<VehicleCostItem> CostItems { get; set; }
[Currency]
public decimal TotalPrice { get { return CostItems.Sum(i => i.TotalPrice); } }
}
}