private void CreateNotification(Guid campaignId, string notification) { var campaign = CampaignHelper.GetCampaign(campaignId, "Owner"); var config = new RemindingConfig(campaign.Schema.UId) { AuthorId = _userConnection.CurrentUser.ContactId, ContactId = campaign.OwnerId, SubjectId = campaignId, Description = notification }; RemindingUtilities.CreateReminding(_userConnection, config); }
/// <summary> /// Initializes a new instance of the <see cref="ReportGenerationCompletionReminderSender"/> class with a specified application connection. /// </summary> /// <param name="appConnection">The application connection.</param> public ReportGenerationCompletionReminderSender(AppConnection appConnection) { _appConnection = appConnection; _remindingUtilities = ClassFactory.Get <RemindingUtilities>(); }