예제 #1
0
        public void AddAnnouncementNotificationAnswerToStudent(int announcementQnAId, int announcementId, AnnouncementTypeEnum announcementType)
        {
            var ann          = ServiceLocator.GetAnnouncementService(announcementType).GetAnnouncementDetails(announcementId);
            var annQnA       = ann.AnnouncementQnAs.First(x => x.Id == announcementQnAId);
            var notification = builder.BuildAnnouncementAnswerToPersonNotifiaction(Context.NowSchoolTime, annQnA, ann);

            AddNotification(notification);
        }