Esempio n. 1
0
 public static bool IsVisible(this INewsEntry newsEntry, int minThematicWeight, int maxThematicWeight,
                              int minStructuralWeight, int maxStructuralWeight)
 {
     return(ModelHelper.IsVisible(newsEntry.ThematicWeight, newsEntry.StructuralWeight,
                                  minThematicWeight, maxThematicWeight, minStructuralWeight, maxStructuralWeight));
 }
Esempio n. 2
0
 public static bool HasBeenExpired(this INewsEntry newsEntry, DateTime now)
 {
     return(ModelHelper.HasBeenExpired(now, newsEntry.StartDate, newsEntry.EndDate));
 }
Esempio n. 3
0
 public static DateTime PublishedOnDate(this INewsEntry newsEntry)
 {
     return(ModelHelper.PublishedOnDate(newsEntry.StartDate, newsEntry.ContentItem.CreatedOnDate));
 }
Esempio n. 4
0
 public static bool IsPublished(this INewsEntry newsEntry, DateTime now)
 {
     return(ModelHelper.IsPublished(now, newsEntry.StartDate, newsEntry.EndDate));
 }