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