예제 #1
0
        public void AddAnnouncementNewAttachmentNotification(int announcementId, AnnouncementTypeEnum announcementType)
        {
            var ann           = ServiceLocator.GetAnnouncementService(announcementType).GetAnnouncementDetails(announcementId);
            var persons       = ServiceLocator.GetAnnouncementService(announcementType).GetAnnouncementRecipientPersons(announcementId, StudentFilterEnum.All);
            var notifications = new List <Notification>();

            foreach (var person in persons)
            {
                notifications.Add(builder.BuildAnnouncementNewAttachmentNotification(Context.NowSchoolTime, ann, person));
            }
            AddNotifications(notifications);
        }