diff --git a/GitAspx/Helpers.cs b/GitAspx/Helpers.cs index 0b7865b..5c7a5f1 100644 --- a/GitAspx/Helpers.cs +++ b/GitAspx/Helpers.cs @@ -32,17 +32,6 @@ public static class Helpers { urlHelper.RequestContext.HttpContext.Request.Url.Host); } - public static string GetDescription(this Enum e) { - var field = e.GetType().GetField(e.ToString()); - var attributes = (DescriptionAttribute[]) field.GetCustomAttributes(typeof (DescriptionAttribute), false); - - if (attributes.Length > 0) { - return attributes[0].Description; - } - - return e.ToString(); - } - public static string ToPrettyDateString(this DateTime d) { TimeSpan s = DateTime.Now.Subtract(d); int dayDiff = (int)s.TotalDays; @@ -80,6 +69,7 @@ public static class Helpers { return null; } + public static string With(this string format, params string[] args) { return string.Format(format, args); }