Example #1
0
 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();
 }
Example #2
0
 public static Ecard[] FetchSent(string username, EcardType.eType type)
 {
     return FetchSent(username)
     .Where(x => EcardType.Fetch(x.EcardTypeID).Type == type).ToArray();
 }
Example #3
0
 public static Ecard[] FetchUnread(string username, EcardType.eType type)
 {
     return FetchReceived(username, type).Where(x=> x.IsOpened==false).ToArray();
 }