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());
}
}
}
+7
View File
@@ -147,5 +147,12 @@ namespace MileageTraker.Web.ViewModels.Log
}
}
}
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());
}
}
}
+5
View File
@@ -6,5 +6,10 @@ namespace MileageTraker.Web.ViewModels
{
public SelectList Available { get; set; }
public int Selected { get; set; }
public override string ToString()
{
return Selected.ToString();
}
}
}