Ejemplo 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));
 }
Ejemplo n.º 2
0
 public static bool HasBeenExpired(this INewsEntry newsEntry, DateTime now)
 {
     return(ModelHelper.HasBeenExpired(now, newsEntry.StartDate, newsEntry.EndDate));
 }
Ejemplo n.º 3
0
 public static DateTime PublishedOnDate(this INewsEntry newsEntry)
 {
     return(ModelHelper.PublishedOnDate(newsEntry.StartDate, newsEntry.ContentItem.CreatedOnDate));
 }
Ejemplo n.º 4
0
 public static bool IsPublished(this INewsEntry newsEntry, DateTime now)
 {
     return(ModelHelper.IsPublished(now, newsEntry.StartDate, newsEntry.EndDate));
 }