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); }
public NotifyDonatorUserCommand(Guid institutionUserId, bool enableRequestOnPage, BreastMilkNotificationCommand breastMilkNotification, ICollection <BloodNotificationCommand> bloodNotifications, ICollection <HairNotificationCommand> hairNotifications) { InstitutionUserId = institutionUserId; EnableRequestOnPage = enableRequestOnPage; BreastMilkNotification = breastMilkNotification; BloodNotifications = bloodNotifications; HairNotifications = hairNotifications; }
private bool HasBreastMilkNotification(BreastMilkNotificationCommand breastMilkNotification) => breastMilkNotification != null;