From 13c5c6cde54b4c3e2b31e18a43afd6c5f3b7e2eb Mon Sep 17 00:00:00 2001 From: James Kolpack Date: Fri, 24 Jan 2014 21:49:36 -0500 Subject: [PATCH] Better logs for common ActionLog attribute paramters --- Web/ViewModels/CreateLog/EditPastViewModel.cs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Web/ViewModels/CreateLog/EditPastViewModel.cs b/Web/ViewModels/CreateLog/EditPastViewModel.cs index ef3702f..744d5ff 100644 --- a/Web/ViewModels/CreateLog/EditPastViewModel.cs +++ b/Web/ViewModels/CreateLog/EditPastViewModel.cs @@ -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()); + } } } \ No newline at end of file