Files
MileageTraker/Web/ViewModels/Vehicle/VehicleCostReport.cs
T
2015-11-02 09:43:06 -05:00

16 lines
370 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 TotalCost { get { return CostItems.Sum(i => i.TotalPrice); } }
}
}