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
+3 -1
View File
@@ -7,7 +7,9 @@ namespace MileageTraker.Web.Attributes
{
public override bool IsValid(object value)
{
var date = DateTime.Parse(value.ToString());
DateTime date;
if(value == null || !DateTime.TryParse(value.ToString(), out date))
return false;
return date.Date <= DateTime.Today;
}
}