Admin import functional

This commit is contained in:
2014-02-02 10:19:02 -05:00
parent 13c5c6cde5
commit 3ab80e283a
41 changed files with 2809 additions and 101 deletions
+6
View File
@@ -35,6 +35,12 @@ namespace MileageTraker.Web.Models
return new MileageLogTypeWrapper { Enum = c };
}
public static implicit operator MileageLogTypeWrapper(string s)
{
var ml = (MileageLogType) typeof(MileageLogType).ParseWithDisplayNames(s);
return new MileageLogTypeWrapper {Enum = ml};
}
public override string ToString()
{
return Enum.GetDisplayName();