16 lines
370 B
C#
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); } }
|
|
}
|
|
} |