Exemple #1
0
        private async Task PostObjection(NotificationAssessmentDecisionViewModel model)
        {
            var date = new DateTime(model.ObjectionDate.Year.GetValueOrDefault(), model.ObjectionDate.Month.GetValueOrDefault(), model.ObjectionDate.Day.GetValueOrDefault());

            var request = new ObjectNotificationApplication(model.NotificationId, date, model.ReasonForObjection);
            await mediator.SendAsync(request);
        }
        private async Task PostObjection(NotificationAssessmentDecisionViewModel model)
        {
            var date = new DateTime(model.ObjectionDate.Year.GetValueOrDefault(), model.ObjectionDate.Month.GetValueOrDefault(), model.ObjectionDate.Day.GetValueOrDefault());

            var request = new ObjectNotificationApplication(model.NotificationId, date, model.ReasonForObjection);
            await mediator.SendAsync(request);
        }