private PendingEventEntities OnSaving() { var pending = new PendingEventEntities(); pending.PendingTicketChanges = GetTicketChanges(); if (SecurityProvider != null) { ProcessDeletedProjects(); PreProcessNewTickets(); PreProcessModifiedTickets(pending.PendingTicketChanges); //IMPORTANT! ticket event changes may not exist until after preprocess methods above // are called. Order dependent operations! CreateEventNotifications(); pending.PendingEventNotificationChanges = GetTicketEventNotificationChanges().ToArray(); } return(pending); }
private void RaiseEntityChangeEvents(PendingEventEntities pendingEntityChanges) { RaiseTicketsChanged(this, pendingEntityChanges.PendingTicketChanges); RaiseNotificationsCreated(this, pendingEntityChanges.PendingEventNotificationChanges); }