Пример #1
0
        public MediatorResponse <ApprenticeshipApplicationViewModel> Review(ApplicationSelectionViewModel applicationSelectionViewModel)
        {
            if (applicationSelectionViewModel.ApplicationId == Guid.Empty)
            {
                _logService.Info("Review vacancy failed: VacancyGuid is empty.");
                return(GetMediatorResponse(ApprenticeshipApplicationMediatorCodes.Review.NoApplicationId, new ApprenticeshipApplicationViewModel(), ApplicationPageMessages.ApplicationNotFound, UserMessageLevel.Info));
            }

            var viewModel = _applicationProvider.GetApprenticeshipApplicationViewModel(applicationSelectionViewModel);

            return(GetMediatorResponse(ApprenticeshipApplicationMediatorCodes.Review.Ok, viewModel));
        }