Admin import functional
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user