public async Task <KeyDatesSummaryData> HandleAsync(GetKeyDatesSummaryInformation message)
        {
            var notification = await notificationRepository.GetById(message.NotificationId);

            var assessment = await assessmentRepository.GetByNotificationId(message.NotificationId);

            var dates = await datesSummaryRepository.GetById(message.NotificationId);

            var decision = await decisionRepository.GetByNotificationId(message.NotificationId);

            var facilityCollection = await facilityRepository.GetByNotificationId(message.NotificationId);

            var consultation = await consultationRepository.GetByNotificationId(message.NotificationId);

            return(new KeyDatesSummaryData
            {
                CompetentAuthority = notification.CompetentAuthority,
                IsLocalAreaSet = consultation != null && consultation.LocalAreaId.HasValue,
                Dates = mapper.Map <NotificationDatesData>(dates),
                DecisionHistory = decision,
                IsInterim = facilityCollection.IsInterim
            });
        }
 public async Task <IList <NotificationAssessmentDecision> > HandleAsync(GetDecisionHistory message)
 {
     return(await decisionRepository.GetByNotificationId(message.NotificationId));
 }