Пример #1
0
 private void RegisterBreastMilkNotification(Notification notification,
                                             BreastMilkNotificationCommand command)
 {
     notification.SetBreastMilkNotification(new BreastMilkNotification(Guid.NewGuid(),
                                                                       notification.Id,
                                                                       command.Amount,
                                                                       command.ShareOnFacebook,
                                                                       command.ShareOnLinkedin,
                                                                       command.ShareOnTwitter));
     _breastMilkNotificationRepository.Add(notification.BreastMilkNotification);
 }
Пример #2
0
 public NotifyDonatorUserCommand(Guid institutionUserId,
                                 bool enableRequestOnPage,
                                 BreastMilkNotificationCommand breastMilkNotification,
                                 ICollection <BloodNotificationCommand> bloodNotifications,
                                 ICollection <HairNotificationCommand> hairNotifications)
 {
     InstitutionUserId      = institutionUserId;
     EnableRequestOnPage    = enableRequestOnPage;
     BreastMilkNotification = breastMilkNotification;
     BloodNotifications     = bloodNotifications;
     HairNotifications      = hairNotifications;
 }
Пример #3
0
 private bool HasBreastMilkNotification(BreastMilkNotificationCommand breastMilkNotification)
 => breastMilkNotification != null;