Import FuelLog

This commit is contained in:
2015-09-09 22:45:27 -04:00
parent f3a7249793
commit 56dd091178
21 changed files with 500 additions and 15 deletions
+7
View File
@@ -2,6 +2,7 @@ using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Data.SqlTypes;
using System.Globalization;
using System.Linq;
using System.Linq.Expressions;
using System.Reflection;
@@ -21,6 +22,12 @@ namespace MileageTraker.Web.Utility
current + (Char.IsUpper(c) ? " " + c : c.ToString()));
}
public static string ToTitleCase(this string str)
{
// http://stackoverflow.com/q/1943273/99492
return CultureInfo.CurrentCulture.TextInfo.ToTitleCase(str);
}
private static T GetAttribute<T>(this Enum enumeration) where T : Attribute
{
var type = enumeration.GetType();