Beispiel #1
0
        private async Task PostConsent(NotificationAssessmentDecisionViewModel model)
        {
            var request = new ConsentNotificationApplication(model.NotificationId,
                                                             model.ConsentValidFromDate.AsDateTime().GetValueOrDefault(),
                                                             model.ConsentValidToDate.AsDateTime().GetValueOrDefault(),
                                                             model.ConsentedDate.AsDateTime().GetValueOrDefault(),
                                                             model.ConsentConditions);

            await mediator.SendAsync(request);
        }
        private async Task PostConsent(NotificationAssessmentDecisionViewModel model)
        {
            var request = new ConsentNotificationApplication(model.NotificationId,
                model.ConsentValidFromDate.AsDateTime().GetValueOrDefault(),
                model.ConsentValidToDate.AsDateTime().GetValueOrDefault(),
                model.ConsentedDate.AsDateTime().GetValueOrDefault(),
                model.ConsentConditions);

            await mediator.SendAsync(request);
        }