Exemplo n.º 1
0
        public async Task <IDocumentBlock> Create(Guid notificationId, IList <MergeField> mergeFields)
        {
            var transportRoute = await transportRouteRepository.GetByNotificationId(notificationId);

            var notificationCompetenetAuthority = await notificationApplicationRepository.GetNotificationCompetentAuthority(notificationId);

            return(new CustomsOfficeBlock(mergeFields, transportRoute, notificationCompetenetAuthority));
        }
 public async Task <UKCompetentAuthority> HandleAsync(GetNotificationCompetentAuthority message)
 {
     return(await repository.GetNotificationCompetentAuthority(message.NotificationId));
 }