public static Notification MahfilUpdated(Congregration newCongregration, DateTime originalDateTime, string originalVenue) { var notification = new Notification(NotificationType.MahfilUpdated, newCongregration); notification.OriginalDateTime = originalDateTime; notification.OriginalVenue = originalVenue; return(notification); }
private Notification(NotificationType type, Congregration congregration) { if (congregration == null) { throw new ArgumentNullException("congregration"); } Type = type; Congregration = congregration; DateTime = DateTime.Now; Id = Guid.NewGuid().ToString(); }
public static Notification MahfilCanceled(Congregration congregration) { return(new Notification(NotificationType.MahfilCanceled, congregration)); }