private Notifications(NotificationType type, Reclamations reclamation) { if (reclamation == null) { throw new ArgumentNullException("reclamation"); } Type = type; Reclamation = reclamation; DateTime = DateTime.Now; }
public static Notifications ReclamationCreated(Reclamations reclamation) { return(new Notifications(NotificationType.ReclamationCreated, reclamation)); }