예제 #1
0
        public ActionResult ManageVacanciesTransfers(int providerId, int providerSiteId, string vacanciesReferenceNumbers)
        {
            var providerResponse       = _adminMediator.GetProvider(providerId);
            var providerSiteResponse   = _adminMediator.GetProviderSite(providerSiteId);
            var manageVacancyViewModel = new ManageVacancyTransferViewModel
            {
                ProviderId       = providerId,
                ProviderName     = providerResponse.ViewModel.FullName,
                ProviderSiteId   = providerSiteId,
                ProviderSiteName = providerSiteResponse.ViewModel.DisplayName + " (" + providerSiteResponse.ViewModel.EdsUrn + ")"
            };

            if (vacanciesReferenceNumbers != null)
            {
                manageVacancyViewModel.VacancyReferenceNumbers =
                    vacanciesReferenceNumbers.Split(',').Select(int.Parse).ToList();
            }
            return(View(manageVacancyViewModel));
        }
        public ActionResult ProviderSite(int providerSiteId)
        {
            var response = _adminMediator.GetProviderSite(providerSiteId);

            return(View(response.ViewModel));
        }