public void UpdateModel(ProjectUpdateConfiguration projectUpdateConfiguration)
 {
     projectUpdateConfiguration.ProjectUpdateKickOffDate          = ProjectUpdateKickOffDate;
     projectUpdateConfiguration.ProjectUpdateCloseOutDate         = ProjectUpdateCloseOutDate;
     projectUpdateConfiguration.ProjectUpdateReminderInterval     = ProjectUpdateReminderInterval;
     projectUpdateConfiguration.EnableProjectUpdateReminders      = EnableProjectUpdateReminders.GetValueOrDefault(); // will never be null
     projectUpdateConfiguration.SendPeriodicReminders             = SendPeriodicReminders.GetValueOrDefault();        // will never be null
     projectUpdateConfiguration.SendCloseOutNotification          = SendCloseOutNotification.GetValueOrDefault();     // will never be null
     projectUpdateConfiguration.ProjectUpdateKickOffIntroContent  = ProjectUpdateKickOffIntroContent?.ToString();
     projectUpdateConfiguration.ProjectUpdateReminderIntroContent =
         ProjectUpdateReminderIntroContent?.ToString();
     projectUpdateConfiguration.ProjectUpdateCloseOutIntroContent =
         ProjectUpdateCloseOutIntroContent?.ToString();
 }
コード例 #2
0
 public void UpdateModel(ProjectUpdateSetting projectUpdateSetting)
 {
     projectUpdateSetting.ProjectUpdateKickOffDate          = ProjectUpdateKickOffDate;
     projectUpdateSetting.ProjectUpdateCloseOutDate         = ProjectUpdateCloseOutDate;
     projectUpdateSetting.ProjectUpdateReminderInterval     = ProjectUpdateReminderInterval;
     projectUpdateSetting.EnableProjectUpdateReminders      = EnableProjectUpdateReminders.GetValueOrDefault(); // will never be null
     projectUpdateSetting.SendPeriodicReminders             = SendPeriodicReminders.GetValueOrDefault();        // will never be null
     projectUpdateSetting.SendCloseOutNotification          = SendCloseOutNotification.GetValueOrDefault();     // will never be null
     projectUpdateSetting.ProjectUpdateKickOffIntroContent  = ProjectUpdateKickOffIntroContent?.ToString();
     projectUpdateSetting.ProjectUpdateReminderIntroContent =
         ProjectUpdateReminderIntroContent?.ToString();
     projectUpdateSetting.ProjectUpdateCloseOutIntroContent =
         ProjectUpdateCloseOutIntroContent?.ToString();
     projectUpdateSetting.DaysBeforeCloseOutDateForReminder = DaysBeforeCloseOutDateForReminder;
 }