public static void Add(NotificationType type, ApplicationUser owner, ApplicationUser initiator, Idea idea, IdeasContext context, bool viewed = false) { var notification = new Notification { Owner = owner, Initiator = initiator, NotificationType = type, Idea = idea, DateTime = DateTime.Now, Viewed = viewed }; context.Notifications.Add(notification); }
private static bool RestoreTimeLineForFollowing(Idea idea) { idea.LatestUpdate = idea.DateTime; return(true); }