public static Ecard[] FetchSentInLast24Hours(string username, EcardType.eType type) { return FetchSent(username) .Where(x => x.Date > DateTime.Now.AddHours(-24) && EcardType.Fetch(x.EcardTypeID).Type == type) .ToArray(); }
public static Ecard[] FetchSent(string username, EcardType.eType type) { return FetchSent(username) .Where(x => EcardType.Fetch(x.EcardTypeID).Type == type).ToArray(); }
public static Ecard[] FetchUnread(string username, EcardType.eType type) { return FetchReceived(username, type).Where(x=> x.IsOpened==false).ToArray(); }