public string GetMaxDayCount() { int count = MaxDayCountLevel.GetMaxDayCount(_maxDayCountLevelID); if (count == MaxDayCountLevel.NeverExpire) { return("(infinite)"); } return(count.ToString()); }
public bool IsExpired(DateTime createDate) { int MaxDayCount = MaxDayCountLevel.GetMaxDayCount(MaxDayCountLevelID); if (MaxDayCount == MaxDayCountLevel.NeverExpire) { return(false); } DateTime dtNow = DateTime.Now; TimeSpan tSpan = dtNow.Subtract(createDate); return(tSpan.Days < 0 || tSpan.Days > MaxDayCount); }