Cleanup and fixes
This commit is contained in:
@@ -81,6 +81,8 @@ namespace MileageTraker.Web.ViewModels.Log
|
||||
|
||||
public LogViewModel()
|
||||
{
|
||||
// view will crash if this isn't instantiated
|
||||
LogType = new MileageLogTypeWrapper();
|
||||
}
|
||||
|
||||
public LogViewModel(Models.Log log)
|
||||
@@ -95,10 +97,9 @@ namespace MileageTraker.Web.ViewModels.Log
|
||||
return log;
|
||||
}
|
||||
|
||||
public void UpdateLog(Models.Log log)
|
||||
public void SetProperties(Models.Log log)
|
||||
{
|
||||
Mapper.DynamicMap(this, log);
|
||||
//TODO use automapper somehow
|
||||
}
|
||||
|
||||
public IEnumerable<ValidationResult> Validate(ValidationContext validationContext)
|
||||
|
||||
Reference in New Issue
Block a user