Example #1
0
        private async Task PostWithdrawn(NotificationAssessmentDecisionViewModel model)
        {
            var date = new DateTime(model.WithdrawnDate.Year.GetValueOrDefault(), model.WithdrawnDate.Month.GetValueOrDefault(), model.WithdrawnDate.Day.GetValueOrDefault());

            var request = new WithdrawNotificationApplication(model.NotificationId, date, model.ReasonForWithdrawal);
            await mediator.SendAsync(request);
        }
        private async Task PostWithdrawn(NotificationAssessmentDecisionViewModel model)
        {
            var date = new DateTime(model.WithdrawnDate.Year.GetValueOrDefault(), model.WithdrawnDate.Month.GetValueOrDefault(), model.WithdrawnDate.Day.GetValueOrDefault());

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