public void ManageNotification(TaskAssignment taskAssignment) { if (!taskAssignment.ExistNotification) { var notification = new NotificationBuilder(this.Strategy.Session).WithTitle( "Approval: " + this.WorkItem.WorkItemDescription) .WithDescription("Approval: " + this.WorkItem.WorkItemDescription) .WithTarget(this) .Build(); taskAssignment.Notification = notification; taskAssignment.User.NotificationList.AddNotification(notification); } }
public void ManageNotification(TaskAssignment taskAssignment) { if (!taskAssignment.ExistNotification && this.CommunicationEvent.SendNotification == true && this.CommunicationEvent.RemindAt < this.Strategy.Session.Now()) { var notification = new NotificationBuilder(this.Strategy.Session) .WithTitle("CommunicationEvent: " + this.WorkItem.WorkItemDescription) .WithDescription("CommunicationEvent: " + this.WorkItem.WorkItemDescription) .WithTarget(this) .Build(); taskAssignment.Notification = notification; taskAssignment.User.NotificationList.AddNotification(notification); } }