public List <Notification> SendProjectUpdateReminderMessage( IGrouping <Person, Project> primaryContactProjectsGrouping) { var primaryContactPerson = primaryContactProjectsGrouping.Key; var projects = primaryContactProjectsGrouping.ToList(); if (projects.Count <= 0) { return(new List <Notification>()); } var mailMessage = GenerateReminderForPerson(primaryContactPerson, projects); var sendProjectUpdateReminderMessage = NotificationModelExtensions.SendMessageAndLogNotification(mailMessage, new List <string> { primaryContactPerson.Email }, new List <string>(), new List <string>(), new List <Person> { primaryContactPerson }, DateTime.Now, projects, NotificationType.ProjectUpdateReminder, ToolName); return(sendProjectUpdateReminderMessage); }
public CustomNotificationViewData(FirmaSession currentFirmaSession, List <Person> peopleToNotify, string sendPreviewEmailUrl) { PeopleToNotify = peopleToNotify; CurrentPerson = currentFirmaSession.Person; SendPreviewEmailUrl = sendPreviewEmailUrl; PersonLabel = peopleToNotify.Count > 1 ? "People" : "Person"; SupportEmail = NotificationModelExtensions.DoNotReplyMailAddress(MultiTenantHelpers.GetToolDisplayName()).Address; }