16 lines
443 B
C#
16 lines
443 B
C#
using System;
|
|
using System.Linq;
|
|
using System.Collections.Generic;
|
|
|
|
namespace MileageTraker.Web.ViewModels.Vehicle
|
|
{
|
|
public class VehicleMileageItem
|
|
{
|
|
public string VehicleId { get; set; }
|
|
public int Miles { get; set; }
|
|
public double GasPurchased { get; set; }
|
|
public string Prog { get; set; }
|
|
public IEnumerable<Tuple<Models.Log, Models.Log>> LogPairs { get; set; }
|
|
public int TripCount { get { return LogPairs.Count(); } }
|
|
}
|
|
} |