Exemplo n.º 1
0
        public MediatorResponse <ApprenticeshipApplicationViewModel> SendUnsuccessfulDecision(ApprenticeshipApplicationViewModel applicationViewModel)
        {
            var selectionViewModel          = _applicationProvider.SendUnsuccessfulDecision(applicationViewModel.ApplicationSelection, applicationViewModel.UnSuccessfulReason);
            var updatedApplicationViewModel = _applicationProvider.GetApprenticeshipApplicationViewModel(selectionViewModel);

            updatedApplicationViewModel.ConfirmationStatusSentMessage =
                ApplicationViewModelMessages.UnsuccessfulDecisionFormat;
            return(GetMediatorResponse(ApprenticeshipApplicationMediatorCodes.SendUnsuccessfulDecision.Ok, updatedApplicationViewModel));
        }