Better logs for common ActionLog attribute paramters

This commit is contained in:
2014-01-24 21:49:36 -05:00
parent bb5dab48a0
commit 13c5c6cde5
@@ -135,5 +135,12 @@ namespace MileageTraker.Web.ViewModels.CreateLog
if (result != null)
yield return result;
}
public override string ToString()
{
return string.Format(
"vehicle: {0}, odo: {1}, type: {2}, city: {3}, gas: {4}, purpose: {5}, date: {6}",
VehicleId, EndOdometer, LogType, CityName, GasPurchased, Purpose, Date.ToShortDateString());
}
}
}