Better logs for common ActionLog attribute paramters

This commit is contained in:
2014-01-23 13:59:15 -05:00
parent 30beccfc83
commit bb5dab48a0
6 changed files with 29 additions and 9 deletions
@@ -110,5 +110,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());
}
}
}